Search...
FAQs
Subscribe
Pie
FAQs
Recent topics
Flagged topics
Hot topics
Best topics
Search...
Search within Applets
Search Coderanch
Advance search
Google search
Register / Login
Post Reply
Bookmark Topic
Watch Topic
New Topic
programming forums
Java
Mobile
Certification
Databases
Caching
Books
Engineering
Micro Controllers
OS
Languages
Paradigms
IDEs
Build Tools
Frameworks
Application Servers
Open Source
This Site
Careers
Other
Pie Elite
all forums
this forum made possible by our volunteer staff, including ...
Marshals:
Campbell Ritchie
Jeanne Boyarsky
Ron McLeod
Paul Clapham
Liutauras Vilda
Sheriffs:
paul wheaton
Rob Spoor
Devaka Cooray
Saloon Keepers:
Stephan van Hulst
Tim Holloway
Carey Brown
Frits Walraven
Tim Moores
Bartenders:
Mikalai Zaikin
Forum:
Applets
How to call one applet from another?
Mohit Jain
Ranch Hand
Posts: 74
posted 16 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
Hi Ranchers
I have created a Button in an
applet
and want another applet window to be opened when I click this button.
Please explain how can I do that.
Thanks in advance.
SCJP 5.0, SCWCD in progress
Ulf Dittmer
Rancher
Posts: 43081
77
posted 16 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
Do you really need another
applet
(which would imply a new HTML page being opened), or do you want to open a window from within the applet?
Mohit Jain
Ranch Hand
Posts: 74
posted 16 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
Lets say I have an applet opened in 'appletviewer' with a button. When I click on it, it invokes another
java
applet which opens in another 'appletviewer' window.
How can that be implemented??
SCJP 5.0, SCWCD in progress
Ulf Dittmer
Rancher
Posts: 43081
77
posted 16 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
To have a second applet, you need a second HTML page. While that's no problem in a browser, it's something appletviewer can't do.
Mohit Jain
Ranch Hand
Posts: 74
posted 16 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
How to implement this using browser, please suggest..
SCJP 5.0, SCWCD in progress
Ulf Dittmer
Rancher
Posts: 43081
77
posted 16 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
In the applet class, you'd call
getAppletContext().showDocument(URL, "_blank")
where
URL
is the HTML page containing the second applet. That will open a new window.
You firghten me terribly. I would like to go home now. Here, take this tiny ad:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com
reply
reply
Bookmark Topic
Watch Topic
New Topic
Boost this thread!
Similar Threads
applet to applet communication
applet-applet commun
Communication between two applets
print applet
Opening/Calling up applet window from an Applet application
More...