目录
一.按钮处理
1、UI设置
2、添加事件
JLable也可添加鼠标点击事件
public MainForm(Project project, ToolWindow toolWindow) {
settingButton.addActionListener(e -> {
SettingDialog dialog = new SettingDialog(null);
dialog.show();
if(dialog.getExitCode() == DialogWrapper.OK_EXIT_CODE ){
refreshButton.doClick();
}
});
helpButton.addActionListener(e -> {
HelpDialog dialog = new HelpDialog(null);
dialog.show();
if(dialog.getExitCode() == DialogWrapper.OK_EXIT_CODE