How to manage a BorderLayout with generic JPanel()
Posted
by Nick G.
on Stack Overflow
See other posts from Stack Overflow
or by Nick G.
Published on 2010-06-17T05:16:10Z
Indexed on
2010/06/17
5:23 UTC
Read the original article
Hit count: 169
Im not sure how to reference to JPanel when it was declared like this, I had someone else help me on JPanels and this is the code he used:
final JFrame frame = new JFrame("CIT Test Program");
frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
frame.setPreferredSize(new Dimension(350, 250));
frame.add(new JPanel()
{{
Not sure how to reference to JPanel to use BorderLayout. How would I go about doing this?
© Stack Overflow or respective owner