So I have been messing around with Swing and am starting to grasp general functions with buttons and text boxes etc..
But what I want to do is have a main page (JFrame Form) with 3 buttons and when I click whichever button I want it to open another JFrame form with the options corresponding to that button but cant figure out how to link 2 JFrame forms together and so I can make the appropriate ones visible / invisible when the appropriate button is pressed?
Thanks,
jackiejoe 0 Light Poster
Recommended Answers
Jump to PostIt sounds like you are using netbeans. If you "select" the button so that it is orange, then double click it (or click on 'source'), you will see something that says jButton1ActionPerformed (or whatever the name of it is). Assuming you've already created whatever other window you want to open, …
All 4 Replies
BestJewSinceJC 700 Posting Maven
jackiejoe 0 Light Poster
JamesCherrill 4,733 Most Valuable Poster Team Colleague Featured Poster
weblover 0 Junior Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.