File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Swing / AWT / SWT and the fly likes Hiding button label when button is disable Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "Hiding button label when button is disable" Watch "Hiding button label when button is disable" New topic
Author

Hiding button label when button is disable

Saral Saxena
Ranch Hand

Joined: Apr 22, 2011
Posts: 202

Is there any way to hide the label of button in swing when the button is disable..!! please advise..!!
Michael Dunn
Ranch Hand

Joined: Jun 09, 2003
Posts: 4632

set the disabled text color to that of the button's background color
or
set the text to ""
Maneesh Godbole
Saloon Keeper

Joined: Jul 26, 2007
Posts: 10167
    
    8

From the UX perspective this does not make sense.
Having a disabled button with the text show tells the user that he can perform this operation, but something is missing.
e.g. Disabled "Save" tells me I can save the changes, but I need to do something else first.


[How to ask questions] [Donate a pint, save a life!] [Onff-turn it on!]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Hiding button label when button is disable
 
Similar Threads
JSP and Javascript
more than one click on a button
Disable the radio button from radio button
Login Problem
how to diable browser back button