?? borrow.java~4~
字號:
package bookmanager;import javax.swing.*;import java.awt.*;import com.borland.jbcl.layout.*;/** * <p>Title: </p> * <p>Description: </p> * <p>Copyright: Copyright (c) 2003</p> * <p>Company: </p> * @author not attributable * @version 1.0 */public class borrow extends JFrame { XYLayout xYLayout1 = new XYLayout(); JLabel jLabel1 = new JLabel(); JLabel jLabel2 = new JLabel(); JLabel jLabel3 = new JLabel(); JTextField jTextField1 = new JTextField(); JTextField jTextField2 = new JTextField(); JTextField jTextField3 = new JTextField(); JButton jButton1 = new JButton(); JButton jButton2 = new JButton(); JLabel jLabel4 = new JLabel(); JTextField jTextField4 = new JTextField(); public borrow() { try { jbInit(); } catch(Exception e) { e.printStackTrace(); } } public static void main(String[] args) { borrow borrow = new borrow(); } private void jbInit() throws Exception { jLabel1.setText("student name"); this.getContentPane().setLayout(xYLayout1); jLabel2.setText("book name"); jLabel3.setText("date"); jTextField3.setText(""); jTextField2.setText(""); jTextField1.setText(""); jButton1.setText("Ok"); jButton2.setText("Cancel"); xYLayout1.setWidth(400); xYLayout1.setHeight(276); this.setTitle("Borrow Book"); jLabel4.setText("comment"); jTextField4.setText(""); this.getContentPane().add(jLabel1, new XYConstraints(17, 19, 88, 33)); this.getContentPane().add(jTextField1, new XYConstraints(172, 27, 134, 26)); this.getContentPane().add(jTextField2, new XYConstraints(169, 81, 154, 23)); this.getContentPane().add(jLabel2, new XYConstraints(16, 81, 89, 35)); this.getContentPane().add(jLabel3, new XYConstraints(13, 136, 87, 29)); this.getContentPane().add(jLabel4, new XYConstraints(16, 180, 63, 29)); this.getContentPane().add(jTextField3, new XYConstraints(169, 124, 137, 29)); this.getContentPane().add(jTextField4, new XYConstraints(170, 173, 137, 29)); this.getContentPane().add(jButton2, new XYConstraints(213, 221, 100, 36)); this.getContentPane().add(jButton1, new XYConstraints(64, 222, 101, 36)); }}
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -