Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Why can't I use swing?

 
Tom Caldwell
Ranch Hand
Posts: 39
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Perhaps this is a dumb question as I've never done anything with swing yet. BUT, if I have the swing .jar files that are installed with websphere and I have database servlet that starts from and then displays its results in html,
Why can't I use swing to spice this up a little?
I have read the other posts but I still don't see why
Thanks !!
 
john_guthrie
Greenhorn
Posts: 16
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
servlets write html to your browser. html has nothing to do with swing. html is not java.
if you want to put swing on a web page, you have to use applets. applets have nothing to do with servlets, so you can use any web server to serve applets.
 
Tom Caldwell
Ranch Hand
Posts: 39
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks John, and I guess I should read up on it 1st but thats the area I'm not clear about with swing.
OK my servlet does produce normal html and within this html I have one those applet scrollers with info about the servlet and some links. Its all just displaying on the browswer?? It seems like I could be able to work swing in there somehow?
and how did I get to be a ranch hand? Is that a numer of posts thing?
 
Aleksey Matiychenko
Ranch Hand
Posts: 178
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You could use swing in the applet but you need to install a Java plugin for your browser that you can download from sun.
Alex
 
Januszs
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You can use Bali to achieve this www.spidertop.com They have a JSP to swing Framework
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic