?? order.java~4~
字號:
package studentms;import javax.swing.*;import com.borland.jbcl.layout.*;import java.awt.*;import javax.swing.border.*;public class order extends JFrame { XYLayout xYLayout1 = new XYLayout(); JPanel jPanel1 = new JPanel(); XYLayout xYLayout2 = new XYLayout(); Border border1; JLabel jLabel1 = new JLabel(); JRadioButton jRadioButton1 = new JRadioButton(); JRadioButton jRadioButton2 = new JRadioButton(); JRadioButton jRadioButton3 = new JRadioButton(); JRadioButton jRadioButton4 = new JRadioButton(); JLabel jLabel2 = new JLabel(); JPanel jPanel2 = new JPanel(); XYLayout xYLayout3 = new XYLayout(); JRadioButton jRadioButton5 = new JRadioButton(); JRadioButton jRadioButton6 = new JRadioButton(); JButton jButton1 = new JButton(); JButton jButton2 = new JButton(); public order() { try { jbInit(); } catch(Exception e) { e.printStackTrace(); } } private void jbInit() throws Exception { border1 = BorderFactory.createLineBorder(SystemColor.controlText,1); this.getContentPane().setLayout(xYLayout1); jPanel1.setLayout(xYLayout2); jPanel1.setBorder(border1); jLabel1.setFont(new java.awt.Font("Dialog", 0, 12)); jLabel1.setText("請選擇排序類別:"); jRadioButton1.setFont(new java.awt.Font("Dialog", 0, 12)); jRadioButton1.setText("按總分"); jRadioButton2.setFont(new java.awt.Font("Dialog", 0, 12)); jRadioButton2.setText("按數(shù)學分數(shù)"); jRadioButton3.setFont(new java.awt.Font("Dialog", 0, 12)); jRadioButton3.setText("按語文分數(shù)"); jRadioButton4.setFont(new java.awt.Font("Dialog", 0, 12)); jRadioButton4.setText("按英語分數(shù)"); xYLayout1.setWidth(318); xYLayout1.setHeight(278); jLabel2.setFont(new java.awt.Font("Dialog", 0, 12)); jLabel2.setText("請選擇排序方式:"); jPanel2.setLayout(xYLayout3); jPanel2.setBorder(BorderFactory.createLineBorder(Color.black)); jRadioButton5.setFont(new java.awt.Font("Dialog", 0, 12)); jRadioButton5.setText("從高到低"); jRadioButton6.setFont(new java.awt.Font("Dialog", 0, 12)); jRadioButton6.setText("從低到高"); jButton1.setFont(new java.awt.Font("Dialog", 0, 12)); jButton1.setText("確 定"); jButton2.setFont(new java.awt.Font("Dialog", 0, 12)); jButton2.setText("取 消"); jPanel1.add(jRadioButton1, new XYConstraints(22, 14, 71, 20)); jPanel1.add(jRadioButton3, new XYConstraints(22, 46, 90, 20)); jPanel1.add(jRadioButton4, new XYConstraints(134, 46, 93, 21)); jPanel1.add(jRadioButton2, new XYConstraints(134, 14, 106, 18)); this.getContentPane().add(jLabel1, new XYConstraints(31, 23, 101, 20)); this.getContentPane().add(jLabel2, new XYConstraints(33, 142, 104, 20)); this.getContentPane().add(jButton1, new XYConstraints(55, 230, 80, 25)); this.getContentPane().add(jButton2, new XYConstraints(176, 230, 80, 25)); jPanel2.add(jRadioButton6, new XYConstraints(134, 12, 95, 16)); jPanel2.add(jRadioButton5, new XYConstraints(22, 12, 92, 16)); this.getContentPane().add(jPanel1, new XYConstraints(33, 52, 249, 80)); this.getContentPane().add(jPanel2, new XYConstraints(33, 175, 249, 40)); }}
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -