Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / General / March 2006

Tip: Looking for answers? Try searching our database.

How to pass parameters from an applet to a frame

Thread view: 
Videotron - 22 Mar 2006 02:26 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?
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?


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.