| Author |
button type="button" onclick
|
Kee Kee moon
Ranch Hand
Joined: Dec 11, 2009
Posts: 140
|
|
Please help.
I have the following code in my Servlet program
PrintWriter.println("<button type="button" onclick="display();">Display</button>");
I like to click the button "Display" to open a java GUI, JFrame or JPanel etc.
Thanks.
|
 |
Devaka Cooray
Saloon Keeper
Joined: Jul 29, 2008
Posts: 2691
|
|
|
That has nothing to do with Servlets, and impossible to do unless you use Applets or something . Moving to Applets forum.
|
Author of ExamLab (Download) - the free mock exam kit for SCJP / OCPJP
Home Page -- Twitter Profile -- JavaRanch FAQ -- How to Ask a Question
|
 |
Maneesh Godbole
Saloon Keeper
Joined: Jul 26, 2007
Posts: 8430
|
|
You can with a signed applet. Recommended reading http://stackoverflow.com/questions/6216024/java-applet-run-native-code-from-browser
At the same time, you might want to evaluate Java Web Start
|
[Donate a pint, save a life!] [How to ask questions] [Onff-turn it on!]
|
 |
 |
|
|
subject: button type="button" onclick
|
|
|