View Single Post
Old Feb 22nd, 2006, 12:14 AM   #12
titaniumdecoy
Expert Programmer
 
titaniumdecoy's Avatar
 
Join Date: Nov 2005
Posts: 843
Rep Power: 3 titaniumdecoy is on a distinguished road
Send a message via AIM to titaniumdecoy
In the code you posted, you could add the elements directly to the window (JFrame) by calling app.getContentPane().add(element), or alternatively add them to the panel (JPanel) by calling pan.add(element). If you choose the former you can remove pan from your code.
titaniumdecoy is offline   Reply With Quote