📄 frame4.java~381~
字号:
jButton310.setText("刷新");
jButton310.addActionListener(new Frame4_jButton310_actionAdapter(this));
jButton310.setBounds(new Rectangle(89, 161, 59, 23));
jTextArea448.setEditable(false);
jTextArea448.setText("");
jTextArea448.setLineWrap(true);
jComboBox11.setBounds(new Rectangle(11, 18, 141, 22));
jButton110.setText("确定");
jButton110.addActionListener(new Frame4_jButton110_actionAdapter(this));
jButton110.setBounds(new Rectangle(166, 13, 57, 29));
jPanel110.setLayout(null);
jPanel110.setBounds(new Rectangle(218, 157, 236, 47));
jPanel110.setBorder(titledBorder15);
jPanel16.setLayout(null);
jPanel16.setBounds(new Rectangle(465, 156, 171, 47));
jPanel16.setBorder(titledBorder10);
jButton17.setBounds(new Rectangle(19, 15, 136, 26));
jButton17.setToolTipText("自定义从您的硬盘里打开一份试卷");
jButton17.setText("从硬盘中打开");
jButton20.setBounds(new Rectangle(12, 18, 114, 21));
jButton20.setText("用记事本预览");
jButton21.setBounds(new Rectangle(12, 17, 114, 22));
jButton21.setText("用记事本预览");
jButton21.addActionListener(new Frame4_jButton21_actionAdapter(this));
jList3.addKeyListener(new Frame4_jList3_keyAdapter(this));
jButton22.setBounds(new Rectangle(90, 11, 56, 15));
jButton22.setEnabled(false);
jButton22.setText("确定");
jButton22.addActionListener(new Frame4_jButton22_actionAdapter(this));
jButton23.setBounds(new Rectangle(91, 25, 55, 15));
jButton23.setEnabled(false);
jButton23.setText("修改");
jButton23.addActionListener(new Frame4_jButton23_actionAdapter(this));
jPanel37.setLayout(null);
jButton24.setBounds(new Rectangle(243, 220, 156, 31));
jButton24.setText("修改您的密码");
jButton24.addActionListener(new Frame4_jButton24_actionAdapter(this));
jPasswordField505.setEnabled(false);
jPasswordField505.setText("");
jPasswordField505.setBounds(new Rectangle(197, 177, 269, 32));
jButton25.setBounds(new Rectangle(242, 257, 159, 29));
jButton25.setText("确定修改");
jButton25.addActionListener(new Frame4_jButton25_actionAdapter(this));
jList3.addMouseListener(new Frame4_jList3_mouseAdapter(this));
jList3.addListSelectionListener(new Frame4_jList3_listSelectionAdapter(this));
this.getContentPane().add(jTabbedPane1, null);
jTabbedPane1.add(jPanel1, "试卷制作");
jPanel1.add(jList1, null);
jPanel8.add(jButton1, null);
jPanel8.add(jButton6, null);
jPanel8.add(jButton3, null);
jPanel8.add(jButton2, null);
jPanel8.add(jButton21, null);
jPanel1.add(jPanel9, null);
jPanel1.add(jPanel11, null);
jPanel11.add(jScrollPane12, null);
jPanel11.add(jButton38, null);
jPanel11.add(jButton310, null);
jScrollPane12.getViewport().add(jList3, null);
jPanel9.add(jPanel13, null);
jPanel13.add(jTextField10, null);
jPanel13.add(jLabel13, null);
jPanel9.add(jTextField9, null);
jPanel9.add(jTextField8, null);
jPanel9.add(jTextField7, null);
jPanel9.add(jTextField4, null);
jPanel9.add(jTextField6, null);
jPanel9.add(jLabel4, null);
jPanel9.add(jLabel2, null);
jPanel9.add(jLabel3, null);
jPanel9.add(jLabel17, null);
jPanel9.add(jLabel1, null);
jPanel1.add(jPanel5, null);
jPanel5.add(jScrollPane2, null);
jPanel5.add(jPanel10, null);
jPanel10.add(jTextField5, null);
jPanel10.add(jComboBox1, null);
jPanel10.add(jLabel5, null);
jPanel10.add(jComboBox2, null);
jPanel10.add(jLabel6, null);
jPanel10.add(jLabel10, null);
jPanel10.add(jButton7, null);
jPanel10.add(jButton8, null);
jPanel5.add(jButton9, null);
jPanel5.add(jButton10, null);
jPanel5.add(jButton13, null);
jPanel1.add(jPanel6, null);
jPanel6.add(jScrollPane1, null);
jPanel6.add(jButton4, null);
jPanel6.add(jButton5, null);
jPanel6.add(jButton11, null);
jPanel6.add(jButton12, null);
jPanel1.add(jPanel7, null);
jPanel7.add(jComboBox7, null);
jPanel7.add(jComboBox6, null);
jPanel7.add(jComboBox5, null);
jPanel7.add(jComboBox4, null);
jPanel7.add(jComboBox3, null);
jPanel7.add(jLabel9, null);
jPanel7.add(jLabel11, null);
jPanel7.add(jLabel12, null);
jPanel7.add(jLabel8, null);
jPanel7.add(jLabel7, null);
jPanel7.add(jLabel14, null);
jPanel7.add(jComboBox811, null);
jPanel1.add(jPanel8, null);
jScrollPane1.getViewport().add(jTextArea1, null);
jScrollPane2.getViewport().add(jTextArea2, null);
jTabbedPane1.add(jPanel2, "试卷管理");
jPanel2.add(jPanel15, null);
jPanel15.add(jScrollPane4, null);
jPanel17.add(jComboBox9, null);
jPanel17.add(jButton19, null);
jPanel15.add(jButton18, null);
jPanel15.add(jButton113, null);
jPanel15.add(jPanel12, null);
jPanel12.add(jButton14, null);
jPanel15.add(jPanel17, null);
jScrollPane4.getViewport().add(jTextArea4, null);
jPanel2.add(jPanel14, null);
jPanel14.add(jScrollPane3, null);
jPanel14.add(jButton15, null);
jPanel14.add(jButton16, null);
jPanel14.add(jPanel110, null);
jPanel110.add(jButton110, null);
jPanel110.add(jComboBox11, null);
jPanel14.add(jPanel16, null);
jPanel16.add(jButton17, null);
jScrollPane3.getViewport().add(jTextArea3, null);
jTabbedPane1.add(jPanel4, "题目管理");
jPanel4.add(jPanel31, null);
jPanel31.add(jScrollPane8, null);
jPanel31.add(jButton29, null);
jPanel31.add(jButton210, null);
jPanel31.add(jButton217, null);
jPanel31.add(jButton218, null);
jPanel31.add(jButton34, null);
jScrollPane8.getViewport().add(jTextArea9, null);
jPanel4.add(jPanel29, null);
jPanel29.add(jButton33, null);
jPanel29.add(jButton32, null);
jPanel29.add(jScrollPane11, null);
jScrollPane11.getViewport().add(jList2, null);
jPanel4.add(jPanel30, null);
jPanel30.add(jComboBox27, null);
jPanel30.add(jButton36, null);
jPanel30.add(jButton37, null);
jPanel30.add(jComboBox26, null);
jPanel30.add(jLabel39, null);
jPanel30.add(jLabel38, null);
jPanel30.add(jLabel311, null);
jPanel30.add(jLabel313, null);
jPanel30.add(jLabel310, null);
jPanel30.add(jComboBox25, null);
jPanel30.add(jComboBox24, null);
jPanel30.add(jComboBox2833, null);
jPanel4.add(jPanel33, null);
jPanel33.add(jPanel36, null);
jPanel36.add(jButton215, null);
jPanel36.add(jButton216, null);
jPanel33.add(jComboBox20, null);
jPanel33.add(jComboBox21, null);
jPanel33.add(jLabel34, null);
jPanel33.add(jLabel35, null);
jPanel33.add(jLabel37, null);
jPanel33.add(jComboBox22, null);
jPanel33.add(jLabel36, null);
jPanel33.add(jComboBox23, null);
jPanel4.add(jPanel32, null);
jPanel34.add(jButton213, null);
jPanel34.add(jButton214, null);
jPanel34.add(jScrollPane9, null);
jPanel32.add(jPanel35, null);
jScrollPane9.getViewport().add(jTextArea10, null);
jPanel32.add(jPanel34, null);
jPanel35.add(jTextField16, null);
jPanel35.add(jButton211, null);
jPanel35.add(jButton212, null);
jPanel32.add(jButton35, null);
jTabbedPane1.add(jPanel3, "题目录入");
jPanel18.add(jPanel19, null);
jPanel19.add(jScrollPane6, null);
jPanel18.add(jScrollPane5, null);
jPanel18.add(jPanel25, null);
jScrollPane5.getViewport().add(jTextArea445, null);
jScrollPane6.getViewport().add(jTextArea446, null);
jPanel25.add(jLabel28, null);
jPanel25.add(jTextField443, null);
jPanel18.add(jButton2244, null);
jPanel18.add(jButton2344, null);
jPanel18.add(jButton2044, null);
jPanel3.add(jPanel20, null);
jPanel3.add(jPanel18, null);
jPanel22.add(jScrollPane10, null);
jPanel22.add(jComboBox440, null);
jPanel22.add(jLabel24, null);
jPanel22.add(jLabel23, null);
jPanel22.add(jButton3944, null);
jPanel20.add(jPanel24, null);
jScrollPane10.getViewport().add(jTextArea441, null);
jPanel3.add(jPanel27, null);
jPanel20.add(jPanel21, null);
jPanel21.add(jScrollPane7, null);
jScrollPane7.getViewport().add(jTextArea448, null);
jPanel20.add(jButton2144, null);
jPanel20.add(jButton2544, null);
jPanel20.add(jButton2444, null);
jPanel20.add(jPanel26, null);
jPanel26.add(jLabel29, null);
jPanel26.add(jTextField445, null);
jPanel20.add(jPanel23, null);
jPanel23.add(jTextField442, null);
jPanel27.add(jLabel33, null);
jPanel27.add(jLabel32, null);
jPanel27.add(jLabel30, null);
jPanel27.add(jLabel31, null);
jPanel27.add(jComboBox1744, null);
jPanel27.add(jComboBox1844, null);
jPanel27.add(jComboBox1944, null);
jPanel27.add(jComboBox11044, null);
jPanel27.add(jButton2644, null);
jPanel27.add(jButton2744, null);
jPanel27.add(jButton2844, null);
jPanel27.add(jTextArea744, null);
jPanel27.add(jTextField444, null);
jPanel27.add(jLabel312, null);
jPanel27.add(jPanel28, null);
jPanel28.add(jComboBox14, null);
jTabbedPane1.add(jPanel37, "个人设置");
jPanel24.add(jComboBox415, null);
jPanel24.add(jComboBox416, null);
jPanel24.add(jLabel26, null);
jPanel24.add(jLabel27, null);
jPanel24.add(jButton22, null);
jPanel24.add(jButton23, null);
jPanel20.add(jPanel22, null);
jPanel37.add(jPasswordField505, null);
jPanel37.add(jButton25, null);
jPanel37.add(jButton24, null);
/////////////////////////////////////////
ActionListener a1hg=new ActionListener(){
public void actionPerformed(ActionEvent ae){
jButton4.doClick();
}
};
getRootPane().registerKeyboardAction(
a1hg,KeyStroke.getKeyStroke(KeyEvent.VK_UP,0,false),
JComponent.WHEN_IN_FOCUSED_WINDOW);
getRootPane().registerKeyboardAction(
a1hg,KeyStroke.getKeyStroke(KeyEvent.VK_LEFT,0,false),
JComponent.WHEN_IN_FOCUSED_WINDOW);
////////////////////////////////////////
/////////////////////////////////////////
ActionListener a2hg=new ActionListener(){
public void actionPerformed(ActionEvent ae){
jButton4.doClick();
}
};
getRootPane().registerKeyboardAction(
a2hg,KeyStroke.getKeyStroke(KeyEvent.VK_DOWN,0,false),
JComponent.WHEN_IN_FOCUSED_WINDOW);
getRootPane().registerKeyboardAction(
a2hg,KeyStroke.getKeyStroke(KeyEvent.VK_RIGHT,0,false),
JComponent.WHEN_IN_FOCUSED_WINDOW);
////////////////////////////////////////
}
void jComboBox3_actionPerformed(ActionEvent e) {
}
void jButton7_actionPerformed(ActionEvent e) {
jTextField9.setText(jTextField5.getText());
jTextField7.setText(jComboBox2.getSelectedItem().toString());
jTextField8.setText(jComboBox1.getSelectedItem().toString());
jTextField4.setText(jComboBox3.getSelectedItem().toString());
jTextField6.enable(false);
jTextField5.setEditable(false);
jComboBox1.setEnabled(false);
jComboBox2.setEnabled(false);
jComboBox3.setEnabled(false);
jButton11.setEnabled(true);
jTextArea2.setText(jTextField9.getText()+ '\n'+"类型:"+jTextField8.getText()+ " 总分:"+jTextField7.getText()+" 科目:"+jTextField4.getText()+" 难度:"+jTextField6.getText()+'\n'+"出题老师:"+jTextField10.getText() +" "+" 日期:"+this.year+"年"+this.month+"月"+this.day +"日"+'\n'+"----------------------------------------------------------------------"+'\n') ;
jTextArea2.grabFocus();
}
void jButton8_actionPerformed(ActionEvent e) {
jTextField5.setEditable(true);
jComboBox1.setEnabled(true);
jComboBox2.setEnabled(true);
jComboBox3.setEnabled(true);
jTextField6.enable(true);
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -