Originally Posted by
dajiebuda
I'm learning java.
I have one Jframe with 5 jbuttons. I want to click button1 to have a new Jframe come up. How should I define the 2nd Jframe? class? public class?
you just need to add Action Litener to your button, and use JPanel there, if that's ok for you...

i guess that's the easiest way. Here's link if you want to know how to add action listener..
<URL snipped>
you can always use
http://java.sun.com/ to search for the tutorial and APIs
Last edited by happygeek; Jun 18th, 2007 at 6:05 am. Reason: Keep it on the site please rather than referring users to other forums for an answer