• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Mixing Swing & HTML

 
Stefan Elfvinge
Ranch Hand
Posts: 52
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Is it a poor idea to have, for example, a JOptionPane in the Servletcode. Could it be done?
The problem is that it seems to take forever to execute the servlet(displaying a html-form), and the JOptionPane never "pops" up!!!???
 
Tim Holloway
Saloon Keeper
Pie
Posts: 18277
56
Android Eclipse IDE Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Not clear what you're asking, but if you expect to embed Swing controls in a servlet, that won't work - servlets have no GUI. Swing (and AWT) are for Applications and Applets.
 
Kyle Brown
author
Ranch Hand
Posts: 3892
5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Tim is right -- the only way to do the thing that I think you're asking is to embed an applet tag(whose applet code contains the JOptionPane) in your HTML.
Kyle
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic