Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

passing variable from one applet to another applet

 
chinna velagala
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hey i am connecting two applets... and in first applet i have some variables...and i need to pass those to the next loaded applet....how can this be done?
 
Ulf Dittmer
Rancher
Posts: 42969
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
on click you can store the valuse of those fields in a variable in the first class' code and when the next applet is loaded you can use those variables, provided you place the two classes in the same folder.

No. None of the objects used in the first applet will be available in the second applet.

Furthermore, where is this second applet - on the same web page? On a different web page?

Is this question related to your earlier question? Have you decided against using CardLayout? If so, let us know why, so that we can take that into account when trying to help you.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic