Win a copy of Think Java: How to Think Like a Computer Scientist this week in the Java in General forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Is Swing worth the trouble?

 
Tina Parks
Ranch Hand
Posts: 35
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I posted this question on the comp.lang.java.help newsgroup, but none of my posts ever receive responses. So I thought some of you could help me.
I teach mathematics and physical science at the high school level, and I am trying to create a series of applets for my students. Therefore, the applets I create have to be accessible to a large number of students having varied browser configurations. I like some of the capabilities of Swing, but to this date I have had no luck at all incorporating Swing in my programming. (I have little fires all over the place, and after a week my Swing applets still don't work.) My question: Is it worth the trouble? As much trouble as I have had getting Swing to work on my computer, I can't imagine how much trouble my students are going to have.
 
Tina Parks
Ranch Hand
Posts: 35
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
In another section of this forum (Applets) they say that Netscape 6 will incorporate Swing. So this answers part of my question. Any other thoughts would be appreciated.
 
krishna anand
Ranch Hand
Posts: 61
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Dear Tina
The best thing for you now is to implement the Applets using only AWT and not the Swing Package .Once when all the browsers are updated to support Swing then you can switch over to Swing .This is my practical solution.
------------------
Krishna
 
San Su
Ranch Hand
Posts: 313
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Most of the browsers dont support latest JDK versions.
I think IE supports JDK v1.1.4 only. Swing package became
part of JDK1.2.x versions. ( For short period of time,
it was released as a seperate package ). Sun released java
plugin to solve this problem. Follow the link and download
HTML converter.
http://www.javasoft.com/products/plugin/1.3/docs/html_converter.html
Convert your HTML file using this tool. Now, if the user
tries to access this file, plugin will be installed in their
machine if it's not already installed in it.
If you need more information about Java Plugin, go to www.javasoft.com and search for "Java Plugin".
Its worth spending time on Swing if it's an internal project.
 
Tina Parks
Ranch Hand
Posts: 35
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I found the plug-in to be almost impossible to get working correctly. And if I am having trouble, I cannot imagine how much trouble my students would have.
I think I will use AWT for now. It's too bad, because I would really like to change the line thicknesses, transform coordinates, and a lot of other stuff.
 
Jan Sauerwein
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
There is an other possibility.
First i have to make promotion for opera. It's the best browser on earth.
But never the less, I still have not a problem with the sun-plugin. If you want to make sure that all your students get the needed classes you can put them on your server and instruct the applet to the classes there. The disadvantage is that it needs a lot of time loading the classes.
Hope that helps
j.a.n.s
 
San Su
Ranch Hand
Posts: 313
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Tina Parks,
If you are choosing AWT because of the problem with plugin,
that is a bad move. I am happy to help you to solve the
problems. Swing is very powerful. Swing components are very
flexible.
Sankar Subbiah.
 
Aleksey Matiychenko
Ranch Hand
Posts: 178
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I agree that you can make Swing work. I believe the functionality you get with Swing is worth the trouble. Chances are that you would not have principally different configuration within a set of students in one class. Big companies with thousands of users try not to use swing but for a smaller population I think it should be ok.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic