A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Win a copy of
Java SE 8 for the Really Impatient
this week in the
How to change the button size dynamically ?
Joined: Sep 11, 2007
Oct 24, 2007 00:30:00
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 ?
Joined: Nov 08, 2001
Oct 24, 2007 07:12:00
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?
I agree. Here's the link:
subject: How to change the button size dynamically ?
dynamic size of label
JButton size mystery
JButton redimension itself
How to add JLabel In a JTable cell
JTree Sizing Question
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2014