📄 chooseclothestypedlg.java
字号:
package view.dialog.getClothes;
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.getClothes.ChooseClothesPanel;
import view.panel.getClothes.GetClothesPanel;
import control.getClothes.ChooseClothesTypeListener;
public class ChooseClothesTypeDlg extends JDialog{
private ChooseClothesPanel clothesTypePanel;
private GetClothesPanel getClothesPanel;
public ChooseClothesTypeDlg(GetClothesPanel getClothesPanel){
super(MainFrame.getMainFrame(),"选取衣服类型",true);
this.getClothesPanel = getClothesPanel;
clothesTypePanel = new ChooseClothesPanel();
this.add(clothesTypePanel);
this.setSize(200, 300);
this.pack();
CenterWindow.centerWindow(this);
clothesTypePanel.buildCancelBtn().addActionListener(new ChooseClothesTypeListener(this));
clothesTypePanel.buildOkBtn().addActionListener(new ChooseClothesTypeListener(this));
clothesTypePanel.buildSearchBtn().addActionListener(new ChooseClothesTypeListener(this));
this.addWindowListener(new WindowAdapter(){
public void windowDeiconified(WindowEvent e){}
public void windowIconified(WindowEvent we){}
public void windowClosing(WindowEvent we){
we.getWindow().dispose();
}
});
}
public GetClothesPanel buildGetClothesPanel(){
return getClothesPanel;
}
public ChooseClothesPanel buildChooseClothesPanel(){
return clothesTypePanel;
}
public static void main(String[] args) {
new ChooseClothesTypeDlg(null).setVisible(true);
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -