?? 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 + -