Java Forums

Main Menu
Home
Today's Posts
FAQ
Search
Contact Us

Java Network
Linux Archive
Java Tips
Java Tips Blog

Sponsored Links





Welcome to the Java Forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community, you will:

  • have access to post topics
  • communicate privately with other members (PM)
  • not see advertisements between posts
  • have the possibility to earn one of our surprises if you are an active member
  • access many other special features that will be introduced later.

Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact us.

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 12-31-2007, 12:40 AM
Member
 
Join Date: Dec 2007
Posts: 4
vassil_zorev is on a distinguished road
JButton.hide/showText() feature ?
I am aware that this issue was discussed many times but still couldn't find what I needed.
There is this little game I'm trying to write in Java and for its purpose I need to be able to hide the text of a JButton (not delete it - I still need it, even though it is hidden!) and to be able to display it when I like. Since JButton has no such method and I am kinda newbie on the matter I would much appreciate your help
Bookmark Post in Technorati
Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 01-06-2008, 04:43 PM
tim's Avatar
tim tim is offline
Senior Member
 
Join Date: Dec 2007
Location: South Africa
Posts: 334
tim is on a distinguished road
Save the text
Hello vassil_zorev.

It will probably be simpler if you save the text in memory and delete the text in the button. If you need it again, just use it from memory.
__________________
If your ship has not come in yet then build a lighthouse.
Bookmark Post in Technorati
Reply With Quote
  #3 (permalink)  
Old 01-07-2008, 01:26 AM
Member
 
Join Date: Dec 2007
Posts: 4
vassil_zorev is on a distinguished road
That's exactly what I came up with, too. Thanks though, tim
Bookmark Post in Technorati
Reply With Quote
Sponsored Links
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Hide the titlebar of a JEditorPane Eranga AWT / Swing 1 03-28-2008 12:28 PM
java : how to hide application icon from a task bar yogeshagashe Advanced Java 0 03-12-2008 03:05 PM
To hide browser heading priyanka_t JavaServer Pages (JSP) and JSTL 4 01-09-2008 09:56 AM
How to Hide cursor priya Java Announcements 0 11-14-2007 10:27 AM
Hide hyperlink address on status bar simon JavaServer Pages (JSP) and JSTL 2 07-24-2007 12:34 PM


All times are GMT +3. The time now is 03:25 PM.


VBulletin, Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright ©2006 - 2007, www.java-forums.org