Top "Layout-manager" questions

Layout Managers are a collection of standard Java based layout managers for AWT & Swing components.

Java JPanel inside JScrollPane?

I have a JFrame, in this JFrame I have a JPanel that I draw on, this Panel can be any …

java swing jpanel jscrollpane layout-manager
LinearLayoutManager setReverseLayout() == true but items stack from bottom

This seems like it would be an easy solution, but it seems that setting private RecyclerView mRecyclerView; private RecyclerView.Adapter …

java android android-recyclerview reverse layout-manager
How to set component size inside container with BoxLayout

I'm facing a problem with using BoxLayout. In my example, I try to decrease the height of the text field …

java swing layout layout-manager boxlayout
How to set size of JButton?

i am trying to set size of JButton, but by default it take whole frame, it's height easily set but …

java swing jbutton layout-manager preferredsize
How to make a JPanel expand to max width in another JPanel

I feel I need to rephrase the question a bit. Updated question below.

java swing jpanel layout-manager boxlayout
Providing white space in a Swing GUI

A GUI with no white space appears 'crowded'. How can I provide white space without resorting to explicitly setting the …

java swing whitespace layout-manager
How to add JTable in JPanel with null layout?

I want to add JTable into JPanel whose layout is null. JPanel contains other components. I have to add JTable …

java layout jtable layout-manager null-layout-manager
Java Swing JFrame Layout

I just wrote a simple code where I want a textfield and a button to appear on the main frame, …

java swing jframe jbutton layout-manager
Which Swing layout(s) do you recommend?

There are 8 layout managers in the Java library alone, and then there's a bunch of 3rd party products as well. …

java swing layout layout-manager
java JPanel How to fixed sizes

I want to have a resizable panel, that always has the top green panel of a fixed depth. i.e. …

java swing jpanel layout-manager