?? dialogconnection.java~14~
字號:
package multiclientnew;
import java.awt.BorderLayout;
import java.awt.Frame;
import javax.swing.JDialog;
import javax.swing.JPanel;
import javax.swing.JLabel;
import java.awt.Rectangle;
import javax.swing.BorderFactory;
import java.awt.Color;
import javax.swing.JButton;
import javax.swing.JFrame;
/**
* <p>Title: </p>
*
* <p>Description: </p>
*
* <p>Copyright: Copyright (c) 2007</p>
*
* <p>Company: </p>
*
* @author not attributable
* @version 1.0
*/
public class DialogConnection extends JFrame {
String nameRequest;
String ipRequest;
JPanel jPanel1 = new JPanel();
JButton jButton1 = new JButton();
JButton jButton2 = new JButton();
JLabel jLabel1 = new JLabel();
public DialogConnection(String namerequest,String iprequest) {
nameRequest = namerequest;
ipRequest = iprequest;
try {
setDefaultCloseOperation(DISPOSE_ON_CLOSE);
jbInit();
pack();
} catch (Exception exception) {
exception.printStackTrace();
}
}
private void jbInit() throws Exception {
System.out.println("tttttt");
this.setLocation(500,300);
this.getContentPane().setSize(300,300);
this.getContentPane().setLayout(null);
this.setVisible(true);
jPanel1.setBounds(new Rectangle(22, 33, 343, 222));
jPanel1.setLayout(null);
this.getContentPane().add(jPanel1);
jButton2.setBounds(new Rectangle(176, 121, 91, 24));
jButton2.setText("jButton2");
jLabel1.setText("jLabel1");
jLabel1.setBounds(new Rectangle(13, 19, 246, 68));
jPanel1.add(jLabel1);
jPanel1.add(jButton1);
jPanel1.add(jButton2);
jButton1.setBounds(new Rectangle(5, 128, 81, 23));
jButton1.setText("jButton1");
}
}
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -