Win a copy of The Business Blockchain this week in the Cloud forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How do I navigate from one applet-1 to another applet-2 using a button on applet-1?

 
shabbee shaikh
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello, i am absolutely new to applets, and intend to use them in my project.

What i wish to know is if i have to write some code, what code should i use to navigate from one applet to another, say, when i click on button "Next" which is on the applet-1, i should be able to navigate to applet-2. At the same time, applet-1 should hide itself.

Pleasssse help me out, i tried to find it on internet, but i could not find it anywhere.

Will be very grateful for an early response.
 
Ulf Dittmer
Rancher
Posts: 42969
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello "dusk sfour"-

Welcome to JavaRanch.

On your way in you may have missed that we have a policy on screen names here at JavaRanch. It must consist of a first name and a last name, and not be obviously fictitious. Since yours does not conform with it, please take a moment to change it, which you can do using the "My Profile" link at the top of the page.

As to your question, there's no notion of navigating from one applet to another. What is possible is to navigate from one web page containing an applet to another web page containing an applet. That's what the Applet.getAppletContext().showDocument() method does.
 
shabbee shaikh
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
ohh,I apologise. I will take care of that.

Thank you to solve my problem.
 
takatoshi yanase
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello,

If the applet has Swing GUI, I have another solution, which switches its view of GUI window to other one.

...................
 
Ulf Dittmer
Rancher
Posts: 42969
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
That doesn't sound all that simple to me. Using a CardLayout with two panels would be much easier, IMO.
 
takatoshi yanase
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Technologies have both good and bad points.

CardLayout that has a lot of cards consumes lots of memory. But my technology doesn't. So my technology can be used for information systems that have a lot of windows.

And I compared my technology to usual web applications. I didn't compare my technology to CardLayout. They are used in different purpose.

Regards,
 
shabbee shaikh
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks a lot guys. I shall try both.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic