📄 bidinfo.java
字号:
package investcompanyclient;import java.awt.event.ActionEvent;import java.awt.event.ActionListener;import javax.swing.JButton;import javax.swing.JLabel;import javax.swing.WindowConstants;import javax.swing.SwingUtilities;public class bidinfo extends javax.swing.JFrame { private JLabel jLabel1; private JButton jButton1; /** * Auto-generated main method to display this JFrame *//* public static void main(String[] args) { SwingUtilities.invokeLater(new Runnable() { public void run() { bidinfo inst = new bidinfo(); inst.setLocationRelativeTo(null); inst.setVisible(true); } }); }*/ public bidinfo() { super(); initGUI(); } private void initGUI() { try { setDefaultCloseOperation(WindowConstants.DISPOSE_ON_CLOSE); getContentPane().setLayout(null); { jLabel1 = new JLabel(); getContentPane().add(jLabel1); jLabel1.setText("\u60a8\u7684\u4fe1\u606f\u5df2\u7ecf\u63a5\u6536!"); jLabel1.setBounds(125, 66, 252, 78); } { jButton1 = new JButton(); getContentPane().add(jButton1); jButton1.setText("ok"); jButton1.setBounds(159, 182, 53, 22); jButton1.addActionListener(new ActionListener() { public void actionPerformed(ActionEvent evt) { jButton1ActionPerformed(evt); } }); } pack(); this.setSize(422, 300); } catch (Exception e) { e.printStackTrace(); } } private void jButton1ActionPerformed(ActionEvent evt) { System.out.println("jButton1.actionPerformed, event=" + evt); //TODO add your code for jButton1.actionPerformed this.setVisible(false); }}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -