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

📄 frame5.java~3~

📁 这是Java数据库系统项目开发实践源代码,所有代码经过测试
💻 JAVA~3~
字号:
package untitled5;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) 2003</p> * <p>Company: </p> * @author not attributable * @version 1.0 */public class Frame5 extends JFrame {  JPanel contentPane;  XYLayout xYLayout1 = new XYLayout();  JPasswordField jPasswordField1 = new JPasswordField();  //Construct the frame  public Frame5() {    enableEvents(AWTEvent.WINDOW_EVENT_MASK);    try {      jbInit();    }    catch(Exception e) {      e.printStackTrace();    }  }  //Component initialization  private void jbInit() throws Exception  {    contentPane = (JPanel) this.getContentPane();    jPasswordField1.setText("jPasswordField1");    jPasswordField1.addActionListener(new Frame5_jPasswordField1_actionAdapter(this));    contentPane.setLayout(xYLayout1);    this.setSize(new Dimension(400, 300));    this.setTitle("Frame Title");    contentPane.add(jPasswordField1, new XYConstraints(235, 122, -1, -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);    }  }  void jPasswordField1_actionPerformed(ActionEvent e) {    this.setVisible(false);    try {  Frame1   Frame= new Frame1();      Frame.show();   }   catch (Exception ew) {         System.out.println(ew.getMessage());   }  }}class Frame5_jPasswordField1_actionAdapter implements java.awt.event.ActionListener {  Frame5 adaptee;  Frame5_jPasswordField1_actionAdapter(Frame5 adaptee) {    this.adaptee = adaptee;  }  public void actionPerformed(ActionEvent e) {    adaptee.jPasswordField1_actionPerformed(e);  }}

⌨️ 快捷键说明

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