I have a JFrame that has a bunch of components in it. These components have to adjest their size and certain other settings when the JFrame resizes. now I can capture the resize event but how do I make the components in the frame aware of the event?
Based on the LayoutManager you have used, the components should automatically resize, when the frame is resized.
What Layout are you using?
Best regards, Abhik.
Joined: May 18, 2004
Well, the base is BorderLayout but there are tonnes of components inside that. I've sort of solved the problem by getting the resize events to call methods on the different panels. The components do resize accordingly, but not ones that I have explicitly setSize on before. Like Sliders for example. I was just wondering how everyone else does it...
Joined: Jun 14, 2003
Right. I guess if you have lots of components, it is somekind of a form. If so, you might want to consider using the FormLayout from JGoodies. It might take a while to learn it, but it is very likely that you would end up with relly neat forms.
Hope this helps, Abhik.
I’ve looked at a lot of different solutions, and in my humble opinion Aspose is the way to go. Here’s the link: http://aspose.com