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

📄 denglu.java~3~

📁 中小学校园的教师
💻 JAVA~3~
字号:
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(53, 31, 91, -1));    contentPane.add(jTextField2, new XYConstraints(53, 64, 93, -1));    contentPane.add(jComboBox1, new XYConstraints(54, 97, 92, -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 + -