Swing Panel Question

Posted by dalton conley on Stack Overflow See other posts from Stack Overflow or by dalton conley
Published on 2010-04-14T22:48:04Z Indexed on 2010/04/14 22:53 UTC
Read the original article Hit count: 369

Filed under:

Ok, so I've been pulling my hair out over this all day. I cannot get my panels to resize. I add a panel to anything.. a frame, a content pane, and It wont .. "force" setBounds for some strange reason.

Container pane = window.getContentPane();
JPanel calendarPanel = new JPanel(); 
pane.add(calendarPanel); 
calendarPanel.setBounds(0,0, 320, 335); 

note that window is of JFrame. Any suggestions to sizing a panel would be appreciated!

© Stack Overflow or respective owner

Related posts about swing