In my applet, I have two components. One of them goes in the centre and the other is a Label component being placed at the NORTH edge of the applet. I know that the applet has a BorderLayout, so the width of the label is determined by the width of the applet. The question is, can I set the height of the label, or will it only ever be displayed within the applet at the label's preferred height. If I can set it, then how, since everything I have tried does not seem to work. Best Regards Matt Gaunt
Matthew, I've tried lots of things, and here's the only thing that I've found that works... creating a subclass of Label that sets it's size itself... you might want to expand upon this idea and make the size changes dynamic ( i.e. add methods so you can set height and width without hard coding it in... )
Write once, run anywhere, because there's nowhere to hide! - /. A.C.
What are you doing? You are supposed to be reading this tiny ad!
the new thread boost feature brings a LOT of attention to your favorite threads