diff options
| author | Paul Buetow <paul@buetow.org> | 2008-05-15 23:08:33 +0000 |
|---|---|---|
| committer | Paul Buetow <paul@buetow.org> | 2008-05-15 23:08:33 +0000 |
| commit | d4c1ddcc90c1e2e8660598fc36b3772d2bff6816 (patch) | |
| tree | 28a0afc255e42f92adbca0d102e785301bc43a58 /sources/simulator/VSMain.java | |
| parent | 61599471a5978c1521b9c89c044ac2ce9a88c398 (diff) | |
1 Moved the stuff to trunk!
Diffstat (limited to 'sources/simulator/VSMain.java')
| -rw-r--r-- | sources/simulator/VSMain.java | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/sources/simulator/VSMain.java b/sources/simulator/VSMain.java new file mode 100644 index 0000000..9280eeb --- /dev/null +++ b/sources/simulator/VSMain.java @@ -0,0 +1,34 @@ +package simulator; + +import java.awt.*; +import java.awt.event.*; +import javax.swing.*; + +import editors.*; +import prefs.*; +import protocols.*; + +public class VSMain { + public VSMain(VSPrefs prefs) { + initialize(prefs, null); + } + + public VSMain(VSPrefs prefs, Component relativeTo) { + initialize(prefs, relativeTo); + } + + private void initialize(VSPrefs prefs, Component relativeTo) { + new VSSimulationEditor(prefs, relativeTo); + } + + public static void main(String[] args) { + try { + UIManager.setLookAndFeel( + UIManager.getCrossPlatformLookAndFeelClassName()); + } catch (Exception e) { } + + VSPrefs prefs = VSDefaultPrefs.initialize(); + RegisteredProtocols.initialize(prefs); + new VSMain(prefs); + } +} |
