View Single Post
Join Date: Jun 2007
Posts: 83
Reputation: ProgrammersTalk is an unknown quantity at this point 
Solved Threads: 7
ProgrammersTalk's Avatar
ProgrammersTalk ProgrammersTalk is offline Offline
Junior Poster in Training

Re: need help with jbutton and new jframe

 
0
  #4
Jun 17th, 2007
Originally Posted by dajiebuda View Post
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
The ProgrammersTalk Community | Programming & Marketing | Buying & Selling Script
Hang out place of novice and intermediate programmers
Reply With Quote