This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes HTML, CSS and JavaScript and the fly likes How to change the button size dynamically ? 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 » Engineering » HTML, CSS and JavaScript
Bookmark "How to change the button size dynamically ?" Watch "How to change the button size dynamically ?" New topic
Author

How to change the button size dynamically ?

angelin precilla
Ranch Hand

Joined: Sep 11, 2007
Posts: 33
Hi All,
I need to change the button size dynamically.
When my button label is "delete" , it gets displayed properly.
But if my button label is "delete fr" , some of the text gets cuts off.
How to solve this problem ?
Can anyone help me ?
Eric Pascarello
author
Rancher

Joined: Nov 08, 2001
Posts: 15376
    
    6
Well you did not give much to go on here. Why is it getting cut off. Do you have a set width on it. When is the text being changed to include the new text?

Eric
 
jQuery in Action, 2nd edition
 
subject: How to change the button size dynamically ?
 
Similar Threads
JButton redimension itself
dynamic size of label
JTree Sizing Question
JButton size mystery
How to add JLabel In a JTable cell