⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 findnetdialog.java

📁 一个基于NetBeans平台开发的
💻 JAVA
📖 第 1 页 / 共 2 页
字号:
/* * AAA.java * * Created on 2005年3月11日, 下午8:22 */package com.sinpool.rivercrescent.GUI;import javax.swing.*;import com.sinpool.rivercrescent.*;/** * * @author  sinpool */public class FindNetDialog extends javax.swing.JDialog {      /** A return status code - returned if Cancel button has been pressed */    public static final int RET_CANCEL = 0;    /** A return status code - returned if OK button has been pressed */    public static final int RET_OK = 1;        public int getReturnStatus() {        return returnStatus;    }        public int getJoinedGroupIndex(){        return this.joinedGroupIndex;    }        public String getNiceName(){        return this.niceName;    }    /** Creates new form AAA */    public FindNetDialog(java.awt.Frame parent, boolean modal,NetWork nw) {        super(parent, modal);        this.nw = nw;                initComponents();        buttonGroup1.add(groupIDRadioButton);        buttonGroup1.add(groupNameRadioButton);        buttonGroup1.add(searchAllRadioButton);        this.niceNamePanel.setVisible(false);    }        /** This method is called from within the constructor to     * initialize the form.     * WARNING: Do NOT modify this code. The content of this method is     * always regenerated by the Form Editor.     */    private void initComponents() {//GEN-BEGIN:initComponents        java.awt.GridBagConstraints gridBagConstraints;        buttonGroup1 = new javax.swing.ButtonGroup();        jPanel4 = new javax.swing.JPanel();        groupIDRadioButton = new javax.swing.JRadioButton();        groupNameRadioButton = new javax.swing.JRadioButton();        searchAllRadioButton = new javax.swing.JRadioButton();        searchTextField = new javax.swing.JTextField();        jScrollPane1 = new javax.swing.JScrollPane();        searchList = new javax.swing.JList();        exitButton = new javax.swing.JButton();        joinButton = new javax.swing.JButton();        searchButton = new javax.swing.JButton();        niceNamePanel = new javax.swing.JPanel();        niceNameLabel = new javax.swing.JLabel();        niceNameTextField = new javax.swing.JTextField();        getContentPane().setLayout(new java.awt.GridBagLayout());        setDefaultCloseOperation(javax.swing.WindowConstants.DISPOSE_ON_CLOSE);        setTitle("\u641c\u7d22\u7f51\u7edc");        setResizable(false);        addWindowListener(new java.awt.event.WindowAdapter() {            public void windowClosed(java.awt.event.WindowEvent evt) {                formWindowClosed(evt);            }            public void windowClosing(java.awt.event.WindowEvent evt) {                formWindowClosing(evt);            }        });        jPanel4.setLayout(new java.awt.GridBagLayout());        jPanel4.setBorder(new javax.swing.border.TitledBorder(null, "\u641c\u7d22\u65b9\u5f0f", javax.swing.border.TitledBorder.DEFAULT_JUSTIFICATION, javax.swing.border.TitledBorder.DEFAULT_POSITION, new java.awt.Font("宋体", 0, 14)));        groupIDRadioButton.setFont(new java.awt.Font("宋体", 0, 14));        groupIDRadioButton.setSelected(true);        groupIDRadioButton.setText("\u6309\u7ec4ID\uff08\u63a8\u8350\uff09");        groupIDRadioButton.addActionListener(new java.awt.event.ActionListener() {            public void actionPerformed(java.awt.event.ActionEvent evt) {                groupIDRadioButtonActionPerformed(evt);            }        });        gridBagConstraints = new java.awt.GridBagConstraints();        gridBagConstraints.gridx = 0;        gridBagConstraints.gridy = 0;        gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;        gridBagConstraints.weightx = 1.0;        gridBagConstraints.weighty = 0.25;        jPanel4.add(groupIDRadioButton, gridBagConstraints);        groupNameRadioButton.setFont(new java.awt.Font("宋体", 0, 14));        groupNameRadioButton.setText("\u6309\u7ec4\u540d\uff08\u4e0d\u63a8\u8350\uff09");        groupNameRadioButton.addActionListener(new java.awt.event.ActionListener() {            public void actionPerformed(java.awt.event.ActionEvent evt) {                groupNameRadioButtonActionPerformed(evt);            }        });        gridBagConstraints = new java.awt.GridBagConstraints();        gridBagConstraints.gridx = 0;        gridBagConstraints.gridy = 1;        gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;        gridBagConstraints.weighty = 0.25;        jPanel4.add(groupNameRadioButton, gridBagConstraints);        searchAllRadioButton.setFont(new java.awt.Font("宋体", 0, 14));        searchAllRadioButton.setText("\u641c\u7d22\u5168\u90e8(\u6700\u4e0d\u63a8\u8350)");        searchAllRadioButton.addActionListener(new java.awt.event.ActionListener() {            public void actionPerformed(java.awt.event.ActionEvent evt) {                searchAllRadioButtonActionPerformed(evt);            }        });        gridBagConstraints = new java.awt.GridBagConstraints();        gridBagConstraints.gridx = 0;        gridBagConstraints.gridy = 2;        gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;        gridBagConstraints.weighty = 0.25;        jPanel4.add(searchAllRadioButton, gridBagConstraints);        searchTextField.setFont(new java.awt.Font("宋体", 0, 12));        searchTextField.setText("\u641c\u7d22\u5185\u5bb9");        gridBagConstraints = new java.awt.GridBagConstraints();        gridBagConstraints.gridx = 0;        gridBagConstraints.gridy = 3;        gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;        gridBagConstraints.weighty = 0.25;        jPanel4.add(searchTextField, gridBagConstraints);        gridBagConstraints = new java.awt.GridBagConstraints();        gridBagConstraints.gridx = 0;        gridBagConstraints.gridy = 0;        gridBagConstraints.gridwidth = 5;        gridBagConstraints.ipadx = 244;        gridBagConstraints.ipady = 3;        gridBagConstraints.insets = new java.awt.Insets(3, 3, 3, 3);        getContentPane().add(jPanel4, gridBagConstraints);        jScrollPane1.setBorder(new javax.swing.border.TitledBorder(null, "\u641c\u7d22\u7ed3\u679c", javax.swing.border.TitledBorder.DEFAULT_JUSTIFICATION, javax.swing.border.TitledBorder.DEFAULT_POSITION, new java.awt.Font("宋体", 0, 14)));        searchList.setBackground(java.awt.SystemColor.info);        searchList.setBorder(new javax.swing.border.BevelBorder(javax.swing.border.BevelBorder.LOWERED));        searchList.setFont(new java.awt.Font("宋体", 0, 12));        searchList.setSelectionMode(javax.swing.ListSelectionModel.SINGLE_INTERVAL_SELECTION);        searchList.addListSelectionListener(new javax.swing.event.ListSelectionListener() {            public void valueChanged(javax.swing.event.ListSelectionEvent evt) {                searchListValueChanged(evt);            }        });        jScrollPane1.setViewportView(searchList);        gridBagConstraints = new java.awt.GridBagConstraints();        gridBagConstraints.gridx = 0;        gridBagConstraints.gridy = 4;        gridBagConstraints.gridwidth = 5;        gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;        gridBagConstraints.ipadx = 361;        gridBagConstraints.ipady = 80;        gridBagConstraints.weightx = 1.0;        gridBagConstraints.weighty = 1.0;        gridBagConstraints.insets = new java.awt.Insets(3, 3, 3, 3);        getContentPane().add(jScrollPane1, gridBagConstraints);        exitButton.setFont(new java.awt.Font("宋体", 0, 14));        exitButton.setText("\u9000\u51fa");        exitButton.addActionListener(new java.awt.event.ActionListener() {            public void actionPerformed(java.awt.event.ActionEvent evt) {                exitButtonActionPerformed(evt);            }        });        gridBagConstraints = new java.awt.GridBagConstraints();        gridBagConstraints.gridx = 4;

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -