File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Beginning Java and the fly likes multi-windowed application Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "multi-windowed application" Watch "multi-windowed application" New topic
Author

multi-windowed application

ima clark
Greenhorn

Joined: Apr 23, 2002
Posts: 19
How do I make a multi windowed application. Meaning....one window(JFrame) then the user clicks a button and gets sent to another window(JFrame not messagedialogbox). Would I just code the new container and JFrame within the actionlister that the button uses? Thanks
Dirk Schreckmann
Sheriff

Joined: Dec 10, 2001
Posts: 7023
You could. Things might start to get ugly.
Why not create a new class that defines the new frame that you want to create, then instantiate this other new class from the button's action listener?


[How To Ask Good Questions] [JavaRanch FAQ Wiki] [JavaRanch Radio]
ima clark
Greenhorn

Joined: Apr 23, 2002
Posts: 19
thanks for the advice
 
Consider Paul's rocket mass heater.
 
subject: multi-windowed application
 
Similar Threads
how to make a sub tabbedpane in each pane?
new JFrame in a Java Desktop Application
javaw
Restart a Swing Application from within
Problem with fullscreen