Results 1 to 12 of 12
- 12-21-2010, 04:56 PM #1
Member
- Join Date
- Dec 2010
- Posts
- 6
- Rep Power
- 0
Making Buttons appear and dissappear
I am new to java, and was wondering if it is possible to make it so when I click one button, it will make one or more new buttons appear. Conversely, can I click one button to make one or more other buttons disappear?
Would I perhaps use relational or logical operators to do this?
Thank you in advance for any help or insight!
:)
- 12-21-2010, 05:17 PM #2
- Join Date
- Sep 2008
- Location
- Voorschoten, the Netherlands
- Posts
- 11,398
- Blog Entries
- 7
- Rep Power
- 17
When people rob a bank they get a penalty; when banks rob people they get a bonus.
-
Assuming we're talking Swing.
OP, if you are still having problems, you may want to provide us with more details on the problem. Please see the second link in my signature links below on how to ask smart questions.
- 12-21-2010, 05:49 PM #4
Member
- Join Date
- Dec 2010
- Posts
- 6
- Rep Power
- 0
OK, thanks a lot!
I am VERY new to java, but at least knowing what I need now should point me in the right direction. I will see if I can find some example code of this being used somewhere.
Thanks again!
: )
- 12-21-2010, 06:32 PM #5
Member
- Join Date
- Dec 2010
- Posts
- 6
- Rep Power
- 0
One more question, would it be possible to click a button, and make a table appear?
Thanks!
- 12-21-2010, 06:34 PM #6
What happened when you tried? Check out the API for useful functions.
Java Platform SE 6
- 12-21-2010, 06:57 PM #7
Member
- Join Date
- Dec 2010
- Posts
- 6
- Rep Power
- 0
I am familiar with basic html coding, but I don't have a grasp on the basics of java. My knowledge so far is limited to just copying tutorial java scripts, and substituting my own variables.
I was able to eliminate more than 100 html pages for an art gallery website with simple java code someone came up with, so now I am interested in learning more, but it is a bit overwhelming, since I am more of an artist, and it takes me while to grasp how code works. So I just hope to verify that want I want to do is possible, before I spend hours and hours getting confused.
- 12-21-2010, 07:02 PM #8
That's fine, but you're going to spend a lot more time asking "Is this possible? What about this?" Checking out the API for useful functions (which often link to tutorials) is a much better approach. Plus, people will grow pretty impatient with answering questions without seeing some effort on your part.
I suggest you start at the basic tutorials and slowly work your way up: The Java™ Tutorials
- 12-21-2010, 07:08 PM #9
Member
- Join Date
- Dec 2010
- Posts
- 6
- Rep Power
- 0
Okay, you are right. Thanks for your time!
Maybe I will be back in a few months after I've learned the basics!
- 12-21-2010, 07:11 PM #10
-
- 12-21-2010, 09:05 PM #12
Member
- Join Date
- Dec 2010
- Posts
- 6
- Rep Power
- 0
Similar Threads
-
actions for buttons
By steel in forum AWT / SwingReplies: 1Last Post: 12-02-2010, 05:42 AM -
Help with Buttons
By wld4ubabay in forum New To JavaReplies: 20Last Post: 05-17-2010, 08:13 AM -
Where To Get Pop Up Buttons
By hitmen in forum AWT / SwingReplies: 7Last Post: 03-26-2009, 04:05 AM -
Applet buttons
By h3ckf1r3 in forum Java AppletsReplies: 6Last Post: 09-22-2008, 09:15 PM -
How to use SWT Buttons
By Java Tip in forum SWTReplies: 0Last Post: 07-11-2008, 04:44 PM


LinkBack URL
About LinkBacks
Reply With Quote

Bookmarks