Re: Mixing absolute positioning with BorderLayout




"Jeff Higgins" <oohiggins@xxxxxxxxx> wrote in message news:m8Tni.52$9C1.3@xxxxxxxxxxxxxxx
Hi,
I'd like construct a JFrame with two JPanels,
one using no LayoutManager, as shown below.

When I construct my JFrame with the NORTH JPanel
having no LayoutManager, I'm not able to see my JLabel.

How can I show my JLabel with this arrangement.
<snip code>

displayPanel.setLayout(null);
displayPanel.setPreferredSize(new Dimension(200,100));


.



Relevant Pages

  • Re: Mixing absolute positioning with BorderLayout
    ... When I construct my JFrame with the NORTH JPanel ... having no LayoutManager, I'm not able to see my JLabel. ... How can I show my JLabel with this arrangement. ...
    (comp.lang.java.gui)
  • FlowLayout with maximum right margin
    ... setMaximumSizeis not recognized by FlowLayout. ... setSizeanything but only to pack() my JFrame. ... Do I have to implement my own LayoutManager or use an other one for this ...
    (comp.lang.java.gui)