Java Forums

Main Menu
Home
Today's Posts
FAQ
Search
Contact Us

Java Network
Linux Archive
Java Tips
Java Tips Blog

Sponsored Links





Welcome to the Java Forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community, you will:

  • have access to post topics
  • communicate privately with other members (PM)
  • not see advertisements between posts
  • have the possibility to earn one of our surprises if you are an active member
  • access many other special features that will be introduced later.

Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact us.

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 06-13-2008, 12:28 AM
Member
 
Join Date: Jun 2008
Posts: 8
serfster is on a distinguished road
Applet in a GUI
I am just starting to learn Java and I was wondering if it is possible to insert an applet into a regular GUI application, and if so, what is the code that will do this?
Bookmark Post in Technorati
Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 06-13-2008, 01:09 AM
Fubarable's Avatar
Senior Member
 
Join Date: Jun 2008
Posts: 899
Fubarable is on a distinguished road
You don't want to do this. What you should think about doing is to code a Swing application that ultimately creates a JPanel. Then should you decide to use this as a JApplet, you simply add the JPanel to a JApplets contentPane. Likewise if you want to use this in a stand-alone GUI app, you simply add the JPanel to a JFrame.
Bookmark Post in Technorati
Reply With Quote
Sponsored Links
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
applet amith AWT / Swing 1 05-16-2008 05:24 AM
applet lifecycle babua_87 Java Applets 1 12-05-2007 12:42 AM
First Applet HELP???? nvidia New To Java 0 08-14-2007 12:11 AM
Applet kapoorje Java Applets 0 07-24-2007 06:06 PM
Applet, To center text and To open I engage in a dialog in an Applet Marcus Java Applets 4 06-08-2007 08:15 AM


All times are GMT +3. The time now is 01:51 AM.


VBulletin, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright ©2006 - 2007, www.java-forums.org