This week's book giveaway is in the Cloud/Virtualizaton forum.
We're giving away four copies of Mesos in Action and have Roger Ignazio on-line!
See this thread for details.
Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

My own AppletViewer tool

 
Neeraj jain
Ranch Hand
Posts: 108
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Rancher
Posts: 42967
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 108
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
@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
Rancher
Posts: 42967
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic