Win a copy of AWS Security this week in the Cloud/Virtualization forum!
  • 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 all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Paul Clapham
  • Jeanne Boyarsky
  • Junilu Lacar
  • Henry Wong
Sheriffs:
  • Ron McLeod
  • Devaka Cooray
  • Tim Cooke
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Frits Walraven
  • Tim Holloway
  • Carey Brown
Bartenders:
  • Piet Souris
  • salvin francis
  • fred rosenberger

Please Help me with Applet

 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
How can I insert a Panel in my Applet??? I know just one method that is add(), but it doesn�t work out of init() and i need to call this Panel out of init method. Someone in the world know how i can do it???
 
Greenhorn
Posts: 11
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
you can do this with getContentPane().add(new JPanel(...))
 
author and iconoclast
Posts: 24203
43
Mac OS X Eclipse IDE Chrome
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Matthew's advice is correct for JApplet, which is a Swing-based version of Applet that works only in the Java plug-in.
If you're talking about plain Applets, then why not show us the code that you tried, and be a bit more specific than "it doesn't work" (because "it" should indeed work fine) and maybe we can help.
 
Matthew Orral
Greenhorn
Posts: 11
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Sorry, i was thinking of my own swing applet .With awt this.add(Component) must work.
P.D :Swing (JApplet,etc...) works well also without java plugin.
What about swt (Eclipse)? i've read it's the most efficient ui toolkit with still some portability problems...
[ July 30, 2003: Message edited by: Matthew Orral ]
 
He repaced his skull with glass. So you can see his brain. Kinda like this tiny ad:
Devious Experiments for a Truly Passive Greenhouse!
https://www.kickstarter.com/projects/paulwheaton/greenhouse-1
    Bookmark Topic Watch Topic
  • New Topic