aspose file tools*
The moose likes Applets and the fly likes My own AppletViewer tool Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Applets
Bookmark "My own AppletViewer tool" Watch "My own AppletViewer tool" New topic
Author

My own AppletViewer tool

Neeraj jain
Ranch Hand

Joined: Jun 18, 2013
Posts: 105
I have created my own appletviewer tool but it's not working for every Applet such as for Pacman game program and other square shape extend and shrink program
please tell me is this correct or not ? or how should i improove it .

Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 42946
    
  70
I don't understand how this is supposed to host applets - you don't seem to add the applet to the GUI hierarchy, for example. There's also no code that would handle any parameters, so any applet that uses those would not run.

The section "How can I run an applet as an application, and vice-versa?" (and the code that goes along with it) in the http://www.coderanch.com/how-to/java/AppletsFaq#application may be instructive.
Neeraj jain
Ranch Hand

Joined: Jun 18, 2013
Posts: 105
@Ulf i am a learning Reflections in java So i just tried to make the appletviewer tool as i created javap tool successfully so just asking how to deal with this appletviewer
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 42946
    
  70
I'm confused - what do reflection or javap have to do with this? The code does not use reflection, nor do I see how reflection would play a useful role in this.

Have you checked out the code I pointed you to? If not, that's what you should start with, particularly the MainFrame class.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: My own AppletViewer tool