📄 addclothestypedlg.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.AddNewClothesTypePanel;
import control.clothesTpye.AddClothesTypeListener;
public class AddClothesTypeDlg extends JDialog{
private AddNewClothesTypePanel addClothesCypePanel;
private ClothesTypeDlg clothesTypeDlg;
public AddClothesTypeDlg(ClothesTypeDlg clothesTypeDlg){
super(MainFrame.getMainFrame(),"增加衣服类型",true);
this.clothesTypeDlg = clothesTypeDlg;
addClothesCypePanel = new AddNewClothesTypePanel();
this.add(addClothesCypePanel);
this.setSize(500,400);
this.pack();
CenterWindow.centerWindow(this);
addClothesCypePanel.buildAddBtn().addActionListener(new AddClothesTypeListener(this));
addClothesCypePanel.buildClearBtn().addActionListener(new AddClothesTypeListener(this));
addClothesCypePanel.buildQuitBtn().addActionListener(new AddClothesTypeListener(this));
this.addWindowListener(new WindowAdapter(){
public void windowDeiconified(WindowEvent e){}
public void windowIconified(WindowEvent we){}
public void windowClosing(WindowEvent we){
we.getWindow().dispose();
}
});
}
public AddNewClothesTypePanel getAddClothesTypePanel(){
return addClothesCypePanel;
}
public ClothesTypeDlg getClothesTypeDlg(){
return clothesTypeDlg;
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -