Quantcast
Channel: Java gui layout - Stack Overflow
Browsing latest articles
Browse All 6 View Live

Answer by meverett for Java gui layout

I'd suggest MigLayout, it's very simple and very powerful. In this case all you need to do is JPanel p = new JPanel(new MigLayout("wrap")); p.add(new JLabel());p.add(new JTextField());p.add(new...

View Article



Answer by Stas Jaro for Java gui layout

I would suggest gridlayout. You can choose he rows and columnsime a table

View Article

Answer by ebeprogrammer for Java gui layout

you could use a BoxLayout and in the constructor set the layout type to Box.Y_AXIS, and with this all of the widgets will fall under the previous one added, OR you could still use the GridLayout but...

View Article

Answer by Costis Aivalis for Java gui layout

BoxLayout is what you need: getContentPane().setLayout(new javax.swing.BoxLayout(getContentPane(), javax.swing.BoxLayout.Y_AXIS));

View Article

Answer by Hovercraft Full Of Eels for Java gui layout

Look at BoxLayout, but more important, go through the layout manager tutorial to get an overview of all the user-friendly layout managers. Edit 1:Also, GridLayout sometimes works well in this...

View Article


Java gui layout

How can I make a gui layout in java which is column based? by that i mean:JLabelJTextFieldJLabelJTextFieldJLabelJTextField I want them all stacked on to of each other, rather than side by side. In the...

View Article
Browsing latest articles
Browse All 6 View Live


Latest Images