📄 clothestypedlg.java
字号:
package view.dialog.clothesType;
import java.awt.event.WindowAdapter;
import java.awt.event.WindowEvent;
import javax.swing.JDialog;
import view.common.CenterWindow;
import view.frame.MainFrame;
import view.panel.clothesType.ClothesPriceSetPanel;
import control.clothesTpye.ClothesTypeListener;
public class ClothesTypeDlg extends JDialog{
private ClothesPriceSetPanel clothesTypePanel;
public ClothesTypeDlg(){
super(MainFrame.getMainFrame(),"衣服基本信息",true);
clothesTypePanel = new ClothesPriceSetPanel();
this.add(clothesTypePanel);
this.setSize(700,400);
this.pack();
CenterWindow.centerWindow(this);
clothesTypePanel.buildAddBtn().addActionListener(new ClothesTypeListener(this));
clothesTypePanel.buildModifyBtn().addActionListener(new ClothesTypeListener(this));
clothesTypePanel.buildDeleteBtn().addActionListener(new ClothesTypeListener(this));
clothesTypePanel.buildQuitBtn().addActionListener(new ClothesTypeListener(this));
clothesTypePanel.buildSearchBtn().addActionListener(new ClothesTypeListener(this));
this.addWindowListener(new WindowAdapter(){
public void windowDeiconified(WindowEvent e){}
public void windowIconified(WindowEvent we){}
public void windowClosing(WindowEvent we){
we.getWindow().dispose();
}
});
}
public ClothesPriceSetPanel getClothesTypePanel(){
return clothesTypePanel;
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -