📄 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("按数学分数"); jRadioButton3.setFont(new java.awt.Font("Dialog", 0, 12)); jRadioButton3.setText("按语文分数"); jRadioButton4.setFont(new java.awt.Font("Dialog", 0, 12)); jRadioButton4.setText("按英语分数"); 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 + -