posted 16 years ago
Here is my code:
ApplicationDriver.java
MainFrame.java
LoginPanel.java
But I do not get the JPanel inside the JFrame. I can only see the JFrame. I am confused a lot.
EDIT 1: LoginPanel.java and MainFrame.java updated and irrelavent code removed. I got the JPanel inside the JFrame. How can I position it to the center? What if I want to change the content pane? Would simply creating an instance of some other JPanel like LoginPanel and passing it to setContentPane do?
[ October 09, 2008: Message edited by: Swapnil Sonawane ]
[ October 09, 2008: Message edited by: Swapnil Sonawane ]
Swapnil S. Sonawane<br /> <br />B.Tech (Expected May 2009)<br />Computer Science, NIT Durgapur, India<br />SCJA 1.0