hi
I want to resize the panel that is on the NORTH/Button1 (PAGE_START) of the Border layout.
how can I get broad panel?? Is it possible or not??

Recommended Answers

All 8 Replies

Its the full width of the window; just how broad did you want it to be?

Check setPreferredSize function.

Its the full width of the window; just how broad did you want it to be?

i want to change the size of north panel according to my needs. I want to accomodate components properly. But due to smaller size of the panel some of components are not visible.

Add all the components to the north panel, populate the with data, then pack(). This is the call that fits things.

Member Avatar for hfx642

Hint - You can also create panels within panels.

thanks for your replies.
I applied all these methods. By using setPrefferedSize the panel becomes broad but no component appearin it.

Also by using panel within a panel i have the same output.

pack() does nothing in my case.

please any help, why swing components do not appear??

You need to post your code (in code tags) for anyone to answer that.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.