*
The moose likes Applets and the fly likes button type= Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Applets
Bookmark "button type="button" onclick" Watch "button type="button" onclick" New topic
Author

button type="button" onclick

Kee Kee moon
Ranch Hand

Joined: Dec 11, 2009
Posts: 147

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
ExamLab Creator
Saloon Keeper

Joined: Jul 29, 2008
Posts: 3011
    
  34

That has nothing to do with Servlets, and impossible to do unless you use Applets or something . Moving to Applets forum.


Founder of ExamLab and Systemup
See how I can help you to become an awesome programmer
Maneesh Godbole
Saloon Keeper

Joined: Jul 26, 2007
Posts: 10167
    
    8

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


[How to ask questions] [Donate a pint, save a life!] [Onff-turn it on!]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: button type="button" onclick
 
Similar Threads
how to position div over table
Unhide the text field
The DHTML Calendar-custom onclick
button link to jsp file
Need Help With Dynamic text box in JSP