?? denglu.java~2~
字號:
package shuzixioayuan003_0;import java.awt.*;import java.awt.event.*;import javax.swing.*;import com.borland.jbcl.layout.*;/** * <p>Title: </p> * <p>Description: </p> * <p>Copyright: Copyright (c) 2006</p> * <p>Company: </p> * @author not attributable * @version 1.0 */public class dengLu extends JFrame { JPanel contentPane; XYLayout xYLayout1 = new XYLayout(); JTextField jTextField1 = new JTextField(); JTextField jTextField2 = new JTextField(); JComboBox jComboBox1 = new JComboBox(); //Construct the frame public dengLu() { enableEvents(AWTEvent.WINDOW_EVENT_MASK); try { jbInit(); } catch(Exception e) { e.printStackTrace(); } } //Component initialization private void jbInit() throws Exception { contentPane = (JPanel) this.getContentPane(); jTextField1.setText("jTextField1"); contentPane.setLayout(xYLayout1); this.setSize(new Dimension(300, 200)); this.setTitle("Frame Title"); jTextField2.setText("jTextField2"); contentPane.add(jTextField1, new XYConstraints(57, 34, 91, -1)); contentPane.add(jComboBox1, new XYConstraints(58, 121, 92, -1)); contentPane.add(jTextField2, new XYConstraints(56, 78, 93, -1)); } //Overridden so we can exit when window is closed protected void processWindowEvent(WindowEvent e) { super.processWindowEvent(e); if (e.getID() == WindowEvent.WINDOW_CLOSING) { System.exit(0); } }}
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -