}
public void actionPerformed(ActionEvent e) {
JaWEController jcon = (JaWEController) jawecomponent;
final JDialog d = new JDialog();
final ConfigurationPanel config = new ConfigurationPanel();
JButton btnOk = new JButton("ok");
JButton btnCancel = new JButton("cancel");
JPanel buttons = new JPanel();
System.out.println("action performed " + e.getActionCommand());
d.getContentPane().setLayout(new BoxLayout(d.getContentPane(), BoxLayout.Y_AXIS));
buttons.setLayout(new BoxLayout(buttons, BoxLayout.X_AXIS));
buttons.add(btnOk);
buttons.add(btnCancel);
btnOk.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent e) {
config.applyConfig();
d.setVisible(false);
d.dispose();
}
});
btnCancel.addActionListener(new ActionListener() {