I would like to know how you pass parameters from an applet to a frame. I
know you can pass parameters to an applet such as <PARAM test=Variable> in
Html and simply do a getParameter(test); from an appalet. But how do you do
this in a frame? Or can java pass paramters from an applet that loads a
frame?
Roedy Green - 22 Mar 2006 03:26 GMT
On Tue, 21 Mar 2006 20:26:51 -0500, "Videotron"
<richard_perreault@hotmail.com> wrote, quoted or indirectly quoted
someone who said :
>I would like to know how you pass parameters from an applet to a frame. I
>know you can pass parameters to an applet such as ?PARAM test=Variable> in
>Html and simply do a getParameter(test); from an appalet. But how do you do
>this in a frame? Or can java pass paramters from an applet that loads a
>frame?
whether an applet loads in frame or not is immaterial to the way the
<APPLET tag works or how you get parameters.
Did I misunderstand your question?
see http://mindprod.com/jgloss/applet.html

Signature
Canadian Mind Products, Roedy Green.
http://mindprod.com Java custom programming, consulting and coaching.
Chris Smith - 22 Mar 2006 06:37 GMT
> I would like to know how you pass parameters from an applet to a frame. I
> know you can pass parameters to an applet such as <PARAM test=Variable> in
> Html and simply do a getParameter(test); from an appalet. But how do you do
> this in a frame? Or can java pass paramters from an applet that loads a
> frame?
Have you subclassed Frame? If so, then you just add a parameter to the
constructor. Voila, you're done! (If not, then do something similar
with whatever code you are writing.)
Forget that applet parameter stuff. Applet parameters are complicated
because you're communicating across different environments with an HTML
document. Passing a parameter to a frame is far easier.

Signature
www.designacourse.com
The Easiest Way To Train Anyone... Anywhere.
Chris Smith - Lead Software Developer/Technical Trainer
MindIQ Corporation
Richard Perreault - 23 Mar 2006 01:30 GMT
Could you please explain to me how to subclass a Frame? And how to add a
parameter to the constructor. Is it getParameter I am visual please explain.
Videotron <richard_perreault@hotmail.com> wrote:
> I would like to know how you pass parameters from an applet to a frame. I
> know you can pass parameters to an applet such as <PARAM test=Variable>
[quoted text clipped - 3 lines]
> this in a frame? Or can java pass paramters from an applet that loads a
> frame?
Have you subclassed Frame? If so, then you just add a parameter to the
constructor. Voila, you're done! (If not, then do something similar
with whatever code you are writing.)
Forget that applet parameter stuff. Applet parameters are complicated
because you're communicating across different environments with an HTML
document. Passing a parameter to a frame is far easier.

Signature
www.designacourse.com
The Easiest Way To Train Anyone... Anywhere.
Chris Smith - Lead Software Developer/Technical Trainer
MindIQ Corporation
andrewthommo@gmail.com - 23 Mar 2006 02:29 GMT
> Could you please explain to me how to subclass a Frame?
import java.awt.*;
public MySubClassedFrame extends Frame {
.....
}
>...And how to add a
> parameter to the constructor.
import java.awt.*;
public MySubClassedFrame extends Frame {
public MySubClassedFrame(String myParameter) {
....
}
}
Note that these sorts of questions are best handled on
comp.lang.java.help.
HTH
Andrew T.
Oliver Wong - 22 Mar 2006 22:28 GMT
>I would like to know how you pass parameters from an applet to a frame. I
>know you can pass parameters to an applet such as <PARAM test=Variable> in
>Html and simply do a getParameter(test); from an appalet. But how do you do
>this in a frame? Or can java pass paramters from an applet that loads a
>frame?
It's unclear whether by "frame" you mean an HTML frame, or a Java Frame.
- Oliver
Richard Perreault - 25 Mar 2006 02:44 GMT
Problem was resolved in the comp.lang.java.help newsgroup. Thank you for
your help and support.
>I would like to know how you pass parameters from an applet to a frame. I
>know you can pass parameters to an applet such as <PARAM test=Variable> in
>Html and simply do a getParameter(test); from an appalet. But how do you do
>this in a frame? Or can java pass paramters from an applet that loads a
>frame?