|
||||||||
Creating a GUI Application
Method - using EventQueue and Runnable to launch the main GUI -JFrame
NOW you can put components in your JFrame--below adding a button
see more elaborate example
Method2 - Same as above (using EventQueue and Runnable to launch the main GUI -JFrame) --BUT make the JFrame a different class
Method 3 - have MainApplication class contain an Instance of JFrame (or class you created that descends from JFrame) inside the run method of an anonymous inner instance of Runnable that is again passed to the EventQueue to invoke
|
||||||||
© Lynne Grewe |