Home arrow static arrow Java Programming [Archive] - Running applets
Warning: Creating default object from empty value in /www/htdocs/w008deb8/wiki/components/com_staticxt/staticxt.php on line 51
Java Programming [Archive] - Running applets
This topic has 4 replies on 1 page.

Posts:5
Registered: 3/22/01
Running applets  
Aug 3, 2004 7:31 AM



 
I am in need of a way to run my applet in something like AppletViewer. But I cannot find any documentation that it is stable enough to use as a full time application and be shipped with my product. This is a closed environment DOD system.

The preference is a viewer/browser with no controls, no back buttons, to title bar.... borderless is even better. I could live with appletviewer if I can get supporting docs on its stability and a way to at least change the title on the title bar.

Any suggestions????
 

Posts:19
Registered: 8/3/04
Re: Running applets  
Aug 3, 2004 7:38 AM (reply 1 of 4)



 
This may seem really simplistic, but can't you just load the applet in a browser window without the 'standard buttons' and 'address bar', set to full screen?

Also, when I was developing stand-alone programs in my JAVA class, I used something called "BreezyGUI". Check that out, it was really helpful.
 

Posts:14,142
Registered: 99-04-02
Re: Running applets  
Aug 3, 2004 7:43 AM (reply 2 of 4)



 
Why not just run it as an application? You could create a main method in the applet that opens a JFrame (or JWindow, if you don't want decorations) and put an applet instance in it.
public class MyApplet extends JApplet {   private static boolean standAlone = false;   public static void main(String[] args) {      standAlone = true;      MyApplet app = new MyApplet();      JWindow win = new JWindow();      app.init();      win.getContentPane().add(app);      win.pack();      win.show();      app.start();   }}

Just don't use any applet-specific things like showDocument() or any of the AppletContext stuff. Instead of getParameter, you'd have to get params somewhere else (based on the standAlone flag). You could create your own AppletContext and AppletStub, of course, like the appletviewer would do.
 

Posts:5
Registered: 3/22/01
Re: Running applets  
Aug 3, 2004 8:26 AM (reply 3 of 4)



 
Thanks.....

Will try this and see if they are happy with this.

Customer requirment is to run in a browser environment. hyperlinks etc....
 

Posts:5
Registered: 3/22/01
Re: Running applets  
Aug 3, 2004 8:26 AM (reply 4 of 4)



 
Thanks.

Looks like an interesting development tool
 
This topic has 4 replies on 1 page.