📄 selectdialog.java~8~
字号:
package studentgl;import java.awt.*;import javax.swing.*;import java.sql.*;import java.awt.event.*;/** * <p>Title: </p> * <p>Description: </p> * <p>Copyright: Copyright (c) 2004</p> * <p>Company: </p> * @author not attributable * @version 1.0 */public class selectDialog extends JDialog { JPanel panel1 = new JPanel(); private mainFrame Frame1; private Statement stmt; String stid; JTextField jTextField1 = new JTextField(); JButton jButton1 = new JButton(); public selectDialog(mainFrame frame, String title, boolean modal) { super(frame, title, modal); this.setLocation(309,239); Frame1=frame; stid=Frame1.StID; try { jbInit(); pack(); } catch(Exception ex) { ex.printStackTrace(); } } public selectDialog() { this(null, "", false); } private void jbInit() throws Exception { panel1.setLayout(null); jTextField1.setToolTipText(""); jTextField1.setCaretColor(Color.red); jTextField1.setText(""); jTextField1.setBounds(new Rectangle(119, 65, 132, 33)); jButton1.setBounds(new Rectangle(142, 204, 73, 25)); jButton1.setFont(new java.awt.Font("Serif", 0, 12)); jButton1.setText("确定"); jButton1.addActionListener(new selectDialog_jButton1_actionAdapter(this)); getContentPane().add(panel1); panel1.add(jTextField1, null); panel1.add(jButton1, null); jTextField1.setText(stid); } void jButton1_actionPerformed(ActionEvent e) { }}class selectDialog_jButton1_actionAdapter implements java.awt.event.ActionListener { selectDialog adaptee; selectDialog_jButton1_actionAdapter(selectDialog adaptee) { this.adaptee = adaptee; } public void actionPerformed(ActionEvent e) { adaptee.jButton1_actionPerformed(e); }}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -