Koin Arab
Koin Arab

Reputation: 1107

Own layouts in Swing in Java

I need an advice how I should create my own layout. I know that I should create that from few another layouts but I want to know from which concretely. This is how i want to my layout look like:

my Layout

Can you help me ?

Upvotes: 1

Views: 87

Answers (3)

Andrew Thompson
Andrew Thompson

Reputation: 168815

I'd do it something like this:

enter image description here

As seen with extra width & height

enter image description here

Upvotes: 6

Aaron
Aaron

Reputation: 363

I'm not an expert but I would use one big BorderLayout with a horizontal FlowLayout inside NORTH and a vertical FlowLayout inside WEST. So the rest of the space would be taken by the list view.

Upvotes: 1

Christian
Christian

Reputation: 22343

You can make this layout with the GridBagLayout.

With that layout, you can, obviously make a grid and assign different amount of grid-tiles to your components.

Upvotes: 1

Related Questions