• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

JPanel

 
Greenhorn
Posts: 23
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
 
Ranch Hand
Posts: 1535
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Is this what you are trying to do?
 
Craig Wood
Ranch Hand
Posts: 1535
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
Posts: 23
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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.
 
reply
    Bookmark Topic Watch Topic
  • New Topic