slowly putting the options panel together

git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@249 51baf565-9d33-0410-a72c-fc3788e3496d
This commit is contained in:
Tom Copeland
2002-07-09 17:21:42 +00:00
parent 35c2290095
commit af3eac4e47

View File

@ -28,12 +28,13 @@ public class PMDOptionPane extends AbstractOptionPane implements OptionPane {
private class CloseAL implements ActionListener {
public void actionPerformed(ActionEvent e) {
JOptionPane.showMessageDialog(null, "hi");
dialog.dispose();
}
}
private static final String NAME = "PMD Options";
private SelectedRuleSetsMap selectedRuleSets = new SelectedRuleSetsMap();
private JDialog dialog;
public PMDOptionPane() {
super(NAME);
@ -44,6 +45,8 @@ public class PMDOptionPane extends AbstractOptionPane implements OptionPane {
return NAME;
}
public void _init() {
super._init();
@ -67,7 +70,7 @@ public class PMDOptionPane extends AbstractOptionPane implements OptionPane {
closeButton.addActionListener(new CloseAL());
buttonPanel.add(closeButton);
JDialog dialog = new JDialog(jEdit.getFirstView(), "PMD", true);
dialog = new JDialog(jEdit.getFirstView(), "PMD", true);
dialog.setTitle("PMD");
dialog.getContentPane().setLayout(new BorderLayout());
dialog.getContentPane().add(checkBoxPanel, BorderLayout.CENTER);