01: package org.zilonis.tool;
02:
03: import javax.swing.SwingUtilities;
04: import javax.swing.UIManager;
05: import javax.swing.UnsupportedLookAndFeelException;
06:
07: import org.zilonis.tool.ui.MainFrame;
08: import org.zilonis.tool.ui.TransitionManager;
09:
10: public class Main {
11: private Main() {
12: }
13:
14: public static void main(String[] args) {
15: SwingUtilities.invokeLater(new Runnable() {
16: public void run() {
17: try {
18: UIManager.setLookAndFeel(UIManager
19: .getCrossPlatformLookAndFeelClassName());
20: } catch (ClassNotFoundException e) {
21: } catch (InstantiationException e) {
22: } catch (IllegalAccessException e) {
23: } catch (UnsupportedLookAndFeelException e) {
24: }
25:
26: MainFrame frame = TransitionManager.createMainFrame();
27:
28: frame.setLocationRelativeTo(null);
29: frame.setVisible(true);
30: }
31: });
32: }
33: }
|