usebeanframe.java~2~
来自「jbuilder2006一书的所有源代码」· JAVA~2~ 代码 · 共 33 行
JAVA~2~
33 行
package bean;import java.awt.*;import java.awt.event.*;import javax.swing.*;public class UseBeanFrame extends JFrame { JPanel contentPane; BorderLayout borderLayout1 = new BorderLayout(); public UseBeanFrame() { try { jbInit(); } catch(Exception e) { e.printStackTrace(); } } private void jbInit() throws Exception { contentPane = (JPanel) this.getContentPane(); contentPane.setLayout(borderLayout1); this.setSize(new Dimension(400, 300)); this.setTitle("应用工具栏JavaBean示例"); } protected void processWindowEvent(WindowEvent e) { if (e.getID() == WindowEvent.WINDOW_CLOSING) { System.exit(0); } }}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?