aspose file tools*
The moose likes Swing / AWT / SWT and the fly likes Importing applet into GUI Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "Importing applet into GUI" Watch "Importing applet into GUI" New topic
Author

Importing applet into GUI

Quiet88
Greenhorn

Joined: Nov 19, 2003
Posts: 1
is it possible to import a complete applet straight into a GUI. I have tried a number of ways including converting the applet into a standalone application. However, it still does not seem to work.
Gregg Bolinger
GenRocket Founder
Ranch Hand

Joined: Jul 11, 2001
Posts: 15299
    
    6

Although you may not think your name is important, I would think some people do. Maybe your parents? Wife, Husband, Girlfriend, Boyfriend? Someone thinks your name is important. What do people call you? Now, with that being said, Javaranch doesn't really care what your name is either. We just want something that appears to be a legitimate first and last name. Nothing obvisouly fictitious. And Prince has already done the symbol thing, plus, there is no way to make a symbol for your name appear on Javaranch. So, if you could, please read the Naming Policy and adjust your Display Name accordingly. You can change your display name here.
Thanks and welcome to the Ranch!
[ November 19, 2003: Message edited by: Gregg Bolinger ]

GenRocket - Experts at Building Test Data
Brian Pipa
Ranch Hand

Joined: Sep 29, 2003
Posts: 299
There are a few ways to do it. For some code examples, download LinkBrowser 1.2 from http://touchgraph.sourceforge.net/index.html it is an applet and an application that share the same code. Basically, all the components are added to a main panel and in the applet case, the constructor is called with the JApplet as a parameter and in the application case, the constructor is called with the JFrame as a parameter.
Looking at that code should get you on the right track.
I have also recently seen (though I don't know the URL) a free (and possibly open source) utility that will run any applet as an application. Google for it and you may find it.
Brian


My Java Freeware:<br />MACCC - <a href="http://maccc.pipasoft.com" target="_blank" rel="nofollow">http://maccc.pipasoft.com</a><br />Nator - <a href="http://nator.pipasoft.com" target="_blank" rel="nofollow">http://nator.pipasoft.com</a>
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Importing applet into GUI