File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Swing / AWT / SWT and the fly likes JPanel Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "JPanel" Watch "JPanel" New topic
Author

JPanel

Dean Kiely
Greenhorn

Joined: Feb 27, 2004
Posts: 23
I have a problem, I have created a JFrame right and also had an applet created and I wanted to join the applet up with my jframe. I now want to break down the applet to put it on as a jpanel.
So i am trying to put a JPanel onto the JFrame but I am getting the following error.
java.lang.IllegalArgumentException: adding a window to a container
can anyone help or advise me please.
Tanx
Craig Wood
Ranch Hand

Joined: Jan 14, 2004
Posts: 1535
Is this what you are trying to do?
Craig Wood
Ranch Hand

Joined: Jan 14, 2004
Posts: 1535
Oops, I used a font that is not in the JRE. This one should be okay.
And the "loading an applet" part may be more in alignment with you question...
Dean Kiely
Greenhorn

Joined: Feb 27, 2004
Posts: 23
Thanks for replying Craig, ye i am trying to do something like this. I am still having problems with the actual joining of the two components. I have two seperate running components i.e a japplet and then a jframe (which consists of a textare, textfield and some buttons) and no matter what I try I can not figure out a good way to have the both of them on a single container.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: JPanel