Top "Layout-manager" questions

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

Use of overriding getPreferredSize() instead of using setPreferredSize() for fixed size Components

I read some posts here and I started why some people do @Override public Dimension getPreferredSize() { return new Dimension(500, 500); } instead …

java swing layout-manager
How to right-justify icon in a JLabel?

For a JLabel with icon, if you setHorizontalTextPosition(SwingConstants.LEADING), the icon is painted right after text, no matter how …

java swing jpanel jlabel layout-manager
Java - Vertical "FlowLayout" with Horizontal Scrolling

As described in the title, I've been trying to set up sort of a vertical flow layout with horizontal scrolling. …

java swing jframe jpanel layout-manager
JTextField not showing up in JPanel on launch

The JTextField is there because when I move the mouse over where it's supposed to be the mouse icon changes …

java swing jpanel jtextfield layout-manager
jScrollPane can't add component

I have a jScrollPane and a button on a form. The button adds a component to the jScrollPane. I'm using …

java swing layout-manager jcomponent
How to absolutely position a JPanel over another JPanel with setLayout(null) and a background image?

I'm working with JFrames in Java, specifically with absolutely positioned elements that need to overlap. I understand that to overlay …

java swing jpanel layout-manager absolutelayout
How to get GridBagLayout to respect minimum size of a button or panel?

In the following GridBagLayout code, I'm expecting the specified minimum size of JButton btn2 to be respected when the JFrame …

java swing layout-manager gridbaglayout
Responsive JFrame without Layout Manager

I am trying to do have two button in JFrame, and I call the setBounds method of them for setting …

java swing jframe layout-manager null-layout-manager
How to locate JLabels to an absolute position on Java GUI

I have many JLabels (which includes ImageIcons) in a JPanel. And this JPanel is only a panel on the GUI; …

java user-interface swing layout-manager
Are there no built in C# GUI Layouts?

I'm used to the GUI frameworks in Java as well as the QT GUI framework, and I'm used to the …

c# layout layout-manager