A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
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?
It is sorta covered in the
JavaRanch Style Guide
subject: How to change the button size dynamically ?
JTree Sizing Question
JButton redimension itself
JButton size mystery
dynamic size of label
How to add JLabel In a JTable cell
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2013