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

📄 createjava.java

📁 一些平时可能用到的工具,比如导出数据,比较数据
💻 JAVA
字号:
package gongju;import javax.swing.ComboBoxModel;import javax.swing.DefaultComboBoxModel;import javax.swing.JComboBox;import javax.swing.JLabel;import javax.swing.JTextField;import javax.swing.WindowConstants;//方便新增JAVApublic class CreateJava extends javax.swing.JFrame {	private JLabel labJavanm;	private JTextField txtJavanm;	private JTextField txtFarther;	private JComboBox cobType;	private JLabel labFarther;	private JLabel labType;	/**	 * Auto-generated main method to display this JFrame	 */	public static void main(String[] args) {		CreateJava inst = new CreateJava();		inst.setVisible(true);	}	public CreateJava() {		super();		initGUI();	}	private void initGUI() {		try {			getContentPane().setLayout(null);			setDefaultCloseOperation(WindowConstants.DISPOSE_ON_CLOSE);			{				labJavanm = new JLabel();				getContentPane().add(labJavanm);				labJavanm.setText("\u7c7b\u540d");				labJavanm.setBounds(14, 7, 140, 28);			}			{				txtJavanm = new JTextField();				getContentPane().add(txtJavanm);				txtJavanm.setBounds(14, 49, 147, 28);			}			{				labType = new JLabel();				getContentPane().add(labType);				labType.setText("\u7ee7\u627f");				labType.setBounds(182, 7, 77, 28);			}			{				labFarther = new JLabel();				getContentPane().add(labFarther);				labFarther.setText("\u8d85\u7c7b\u540d");				labFarther.setBounds(280, 7, 70, 28);			}			{				txtFarther = new JTextField();				getContentPane().add(txtFarther);				txtFarther.setBounds(280, 49, 98, 28);			}			{				ComboBoxModel cobTypeModel = new DefaultComboBoxModel(						new String[] { "Item One", "Item Two" });				cobType = new JComboBox();				getContentPane().add(cobType);				cobType.setModel(cobTypeModel);				cobType.setBounds(182, 49, 77, 28);			}			pack();			setSize(400, 300);		} catch (Exception e) {			e.printStackTrace();		}	}}

⌨️ 快捷键说明

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