Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.java.gui > #1609

Re: japplet param

From "ryanoasis" <ryanoasis@THRWHITE.remove-dii-this>
Subject Re: japplet param
Message-ID <1178817954.131528.31200@e51g2000hsg.googlegroups.com> (permalink)
Newsgroups comp.lang.java.gui
References <71f05f7d66328@uwe>
Date 2011-04-27 15:34 +0000
Organization TDS.net

Show all headers | View raw


  To: comp.lang.java.gui
I will look into that.

I have found a way to get it to work (although I'm sure its less than
great):

// CLASS TO HANDLE PARAMS:

public class MAParam extends JApplet {

	public static String myStatic = "init static";

	public void init()
	{
		myStatic = getParameter("count");
	}
}

// HTML:

<html>
<body>

<applet code="MAParam.class" width="0" height="0">
	<param name="count" value=2 />
</applet>
<applet code="ClassIDidntWrite.class" width="800" height="550">
</applet>
</body>
</html>

// CLASS: ClassIDidntWrite
    private static String PARAM;
    public ClassIDidntWrite() {
		  PARAM = MAParam.myStatic;
		  System.out.println("PARAM IS: " + PARAM);
		  System.out.println("MyStatic IS: " + MAParam.myStatic);
                  ...

---
 * Synchronet * The Whitehouse BBS --- whitehouse.hulds.com --- check it out free usenet!
--- Synchronet 3.15a-Win32 NewsLink 1.92
Time Warp of the Future BBS - telnet://time.synchro.net:24

Back to comp.lang.java.gui | Previous | NextPrevious in thread | Find similar | Unroll thread


Thread

japplet param "ryanoasis" <ryanoasis@THRWHITE.remove-dii-this> - 2011-04-27 15:33 +0000
  Re: japplet param "Andrew Thompson" <andrew.thompson@THRWHITE.remove-dii-this> - 2011-04-27 15:33 +0000
  Re: japplet param "Tom Hawtin" <tom.hawtin@THRWHITE.remove-dii-this> - 2011-04-27 15:33 +0000
    Re: japplet param "ryanoasis" <ryanoasis@THRWHITE.remove-dii-this> - 2011-04-27 15:34 +0000
      Re: japplet param "Andrew Thompson" <andrew.thompson@THRWHITE.remove-dii-this> - 2011-04-27 15:34 +0000
        Re: japplet param "ryanoasis" <ryanoasis@THRWHITE.remove-dii-this> - 2011-04-27 15:34 +0000

csiph-web