Win a copy of 97 Things Every Java Programmer Should Know this week in the Java in General 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

Run GUI program interface in an applet(viewer)

 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have a simple program that displays words in a GUI. I want to run this program in an applet so I can access it from anywhere. Any examples or places to find info?
I have a GUI class I created. Can I pass the GUI object I created into to the applet?
FlashcardApplet myFlashcardApplet = new FlashcardApplet(myFlashCardGUI);
Thanks!
[ August 11, 2002: Message edited by: skimbleton ]
 
Sheriff
Posts: 9099
12
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
skimbleton,

Welcome to JavaRanch! Please adjust your display name to meet the JavaRanch Naming Policy.
You can change it here.

Thanks!
 
Marilyn de Queiroz
Sheriff
Posts: 9099
12
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The question is, "Is there a constructor like this?"
FlashcardApplet myFlashcardApplet = new FlashcardApplet( myFlashCardGUI );

You can pass just about anything into a constructor that you create. What you are going to do with it after you pass it in is a different question.

It seems that if FlashcardApplet extends java.applet.Applet, that you will need at least two constructors.
 
Never trust an airline that limits their passengers to one carry on iguana. Put this tiny ad in your shoe:
Devious Experiments for a Truly Passive Greenhouse!
https://www.kickstarter.com/projects/paulwheaton/greenhouse-1
    Bookmark Topic Watch Topic
  • New Topic