feat(BankSystem): 添加银行管理系统主程序入口并调整窗口大小- 在 BankManagerSystem 类中添加 main 方法,创建并显示银行管理系统窗口
- 设置银行管理系统的最大窗口尺寸为 2147483647x600 像素 - 更新 BookManagerSystem 类,移除未使用的注释代码
This commit is contained in:
parent
0f6ab9f93c
commit
dc813b1286
@ -12,6 +12,11 @@ import javax.swing.table.*;
|
||||
* @author xulongjin
|
||||
*/
|
||||
public class BankManagerSystem extends JFrame {
|
||||
|
||||
public static void main(String[] args) {
|
||||
new BankManagerSystem().setVisible(true);
|
||||
}
|
||||
|
||||
public BankManagerSystem() {
|
||||
initComponents();
|
||||
}
|
||||
@ -49,6 +54,7 @@ public class BankManagerSystem extends JFrame {
|
||||
table1 = new JTable();
|
||||
|
||||
//======== this ========
|
||||
setMaximumSize(new Dimension(2147483647, 600));
|
||||
var contentPane = getContentPane();
|
||||
contentPane.setLayout(new GridLayout(3, 0));
|
||||
|
||||
|
@ -7,6 +7,7 @@ new FormModel {
|
||||
"rows": 3
|
||||
} ) {
|
||||
name: "this"
|
||||
"maximumSize": new java.awt.Dimension( 2147483647, 600 )
|
||||
add( new FormContainer( "javax.swing.JPanel", new FormLayoutManager( class com.jformdesigner.runtime.NullLayout ) ) {
|
||||
name: "panel1"
|
||||
add( new FormComponent( "javax.swing.JLabel" ) {
|
||||
|
@ -280,19 +280,4 @@ public class BookManagerSystem extends JFrame {
|
||||
DefaultTableModel dModel;
|
||||
int i;
|
||||
|
||||
|
||||
// @Override
|
||||
// public void valueChanged(ListSelectionEvent e) {
|
||||
// i = tableBookList.getSelectedRow();
|
||||
// if (i >= 0) {
|
||||
// inputBookSN.setText(dModel.getValueAt(i, 0).toString());
|
||||
// inputBookName.setText(dModel.getValueAt(i, 1).toString());
|
||||
// inputBookAuthor.setText(dModel.getValueAt(i, 2).toString());
|
||||
// inputBookPublisher.setText(dModel.getValueAt(i, 3).toString());
|
||||
// inputBookPrice.setText(dModel.getValueAt(i, 4).toString());
|
||||
// inputBookRegisNumber.setText(dModel.getValueAt(i, 5).toString());
|
||||
// selectIsBorrow.setSelected(Boolean.parseBoolean(dModel.getValueAt(i, 6).toString()));
|
||||
// }
|
||||
// }
|
||||
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user