Top "Layout-manager" questions

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

How to position the form in the center screen?

I'm a .Net developer but somehow I was task to create a simple application in java for some extra reason. …

java swing netbeans layout-manager
How do I change JPanel inside a JFrame on the fly?

To put it simple, there's a simple java swing app that consists of JFrame with some components in it. One …

java swing jpanel layout-manager cardlayout
How can I control the width of JTextFields in Java Swing?

I am trying to have several JTextFields on a single row, but I don't want them to have the same …

java swing layout jtextfield layout-manager
java BoxLayout panel's alignment

I have browsed around and haven't found a solution that specifically tailors to my situation. I have a panel that …

java swing user-interface layout-manager boxlayout
Create a Chess board with JPanel

I have a simple Chess board in a JPanel with GridLayout(8,8) as layout manager. I am trying to add panels …

java swing layout-manager grid-layout chess
adding multiple jPanels to jFrame

I want to add two jPanels to a JFrame side by side. the two boxes are jpanels and the outer …

java swing jpanel layout-manager
Centering a JLabel in a JPanel

I have a panel derived from JPanel. I have a custom control derived from JLabel. I am attempting to center …

java swing layout layout-manager
How to make JLabels start on the next line

JPanel pMeasure = new JPanel(); .... JLabel economy = new JLabel("Economy"); JLabel regularity = new JLabel("Regularity"); pMeasure.add(economy); pMeasure.add(regularity); ... …

java swing jpanel jlabel layout-manager
Should I avoid the use of set(Preferred|Maximum|Minimum)Size methods in Java Swing?

Several times I've been criticized for having suggested the use of the following methods: setPreferredSize setMinimumSize setMaximumSize on Swing components. …

java swing layout-manager
Java align JLabel in center of JPanel

I have a bar at the top of my application that has a number of buttons either side of a …

java swing jpanel jlabel layout-manager