Yes, of course it is. You can add Listeners to your top-level container which show their size, and alter the display accordingly. You can add listeners to the text on a label and alter its size depending on the text. You will probably end up with a dreadful GUI . . . but you can do it.
Joined: Mar 05, 2009
layout of my gui is null. so its not a problem. Problem is I have to change the size using setBounds().
can you please tell me to which container I have to add listener just pseudo code..
Joined: Oct 13, 2005
Don't use a null layout if you can help it. You add it to whichever container you happen to be using.