?? borrow.java~2~
字號:
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(); 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.getContentPane().add(jLabel1, new XYConstraints(17, 19, 88, 33)); this.getContentPane().add(jLabel3, new XYConstraints(19, 149, 87, 29)); this.getContentPane().add(jTextField3, new XYConstraints(171, 141, 137, 29)); this.getContentPane().add(jTextField1, new XYConstraints(172, 27, 134, 26)); this.getContentPane().add(jTextField2, new XYConstraints(169, 81, 154, 23)); this.getContentPane().add(jButton1, new XYConstraints(43, 212, 118, 36)); this.getContentPane().add(jButton2, new XYConstraints(215, 210, 100, 36)); this.getContentPane().add(jLabel2, new XYConstraints(16, 81, 89, 35)); }}
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -