📄 error.java
字号:
package investcompanyclient;import java.awt.BorderLayout;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;import javax.swing.*;/*** This code was edited or generated using CloudGarden's Jigloo* SWT/Swing GUI Builder, which is free for non-commercial* use. If Jigloo is being used commercially (ie, by a corporation,* company or business for any purpose whatever) then you* should purchase a license for each developer using Jigloo.* Please visit www.cloudgarden.com for details.* Use of Jigloo implies acceptance of these licensing terms.* A COMMERCIAL LICENSE HAS NOT BEEN PURCHASED FOR* THIS MACHINE, SO JIGLOO OR THIS CODE CANNOT BE USED* LEGALLY FOR ANY CORPORATE OR COMMERCIAL PURPOSE.*/public class error 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() { error inst = new error(); inst.setLocationRelativeTo(null); inst.setVisible(true); inst.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); } }); }*/ public error() { super(); initGUI(); } private void initGUI() { try { setDefaultCloseOperation(WindowConstants.DISPOSE_ON_CLOSE); this.setTitle("ERROR"); getContentPane().setLayout(null); { jLabel1 = new JLabel(); getContentPane().add(jLabel1); jLabel1.setText("ID or Code has errors!"); jLabel1.setBounds(48, 71, 314, 45); jLabel1.setFont(new java.awt.Font("宋体",0,24)); } { jButton1 = new JButton(); getContentPane().add(jButton1); jButton1.setText("OK"); jButton1.setBounds(142, 164, 71, 41); jButton1.addActionListener(new ActionListener() { public void actionPerformed(ActionEvent evt) { jButton1ActionPerformed(evt); } }); } pack(); setSize(400, 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 + -