📄 editstuinfo.java
字号:
package studentms;import java.awt.*;import com.borland.jbcl.layout.*;import java.sql.*;import java.awt.event.*;public class editStuInfo extends stuInfo { public editStuInfo() { jBAdd.setVisible(false); jBModify.setVisible(false); jBDelete.setVisible(false); jBSee.setVisible(false); jBSum.setVisible(false); jBGrade.setVisible(false); jBSearch.setText("查询"); jBSearch.setMargin(new Insets(2, 2, 2, 2)); this.getContentPane().add(jPanel1, new XYConstraints(3, -20, 363, 251)); jPanel1.add(jBSearch, new XYConstraints(102, 218, 53, 23)); jPanel1.add(jBSave, new XYConstraints(163, 218, 53, 23)); jPanel1.add(jBCancel, new XYConstraints(224, 218, 53, 23)); jPanel1.add(jBExit, new XYConstraints(284, 218, 53, 23)); xYLayout1.setWidth(384); xYLayout1.setHeight(240); this.setAbled(false); jBSave.setEnabled(false); jBCancel.setEnabled(false); this.setTitle("修改信息"); this.setExeType("edit"); } //重载查询事件,设置查询要返回的窗体类型void jBSearch_actionPerformed(ActionEvent e) { search by=new search(); Dimension dlgSize = by.getPreferredSize(); Dimension frmSize = getSize(); Point loc = getLocation(); by.setLocation((frmSize.width - dlgSize.width) / 2 + loc.x, (frmSize.height - dlgSize.height) / 2 + loc.y); by.pack() ; by.setLabelText("请选择查询方式:"); by.jTContent.setEnabled(false); by.show() ; by.setShowType("edit");}}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -