/**
* @param args
*/
public static void main(String[] args) throws Exception {
JFrame f = new JFrame();
f.getContentPane().setLayout(new BorderLayout());
ApplicationArguments.initialize(new String[0]);
SQLScriptPreferencesManager.initialize(new DummyPlugin());
SQLScriptPreferenceBean bean = SQLScriptPreferencesManager.getPreferences();
final SQLScriptPreferencesPanel p = new SQLScriptPreferencesPanel(bean);
JScrollPane sp = new JScrollPane(p);
f.getContentPane().add(sp, BorderLayout.CENTER);
JButton button = new JButton("Save");
button.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent e) {
p.applyChanges();
SQLScriptPreferencesManager.unload();
}
});
JButton exitButton = new JButton("Exit");
exitButton.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent e) {
System.exit(0);
}
});
JPanel buttonPanel = new JPanel();
buttonPanel.add(button);
buttonPanel.add(exitButton);
f.getContentPane().add(buttonPanel, BorderLayout.SOUTH);
f.setBounds(200, 50,700, 700);
f.setVisible(true);
}