The moose likes Swing / AWT / SWT and the fly likes Is Swing worth the trouble? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "Is Swing worth the trouble?" Watch "Is Swing worth the trouble?" New topic

Is Swing worth the trouble?

Tina Parks
Ranch Hand

Joined: Jun 30, 2001
Posts: 35
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

Joined: Jun 30, 2001
Posts: 35
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

Joined: Jan 21, 2001
Posts: 61
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.

San Su
Ranch Hand

Joined: Jul 06, 2001
Posts: 313

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.
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

Joined: Jun 30, 2001
Posts: 35
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

Joined: Jul 08, 2001
Posts: 6
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
San Su
Ranch Hand

Joined: Jul 06, 2001
Posts: 313

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
Sankar Subbiah.
Aleksey Matiychenko
Ranch Hand

Joined: Apr 03, 2001
Posts: 178
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.
I agree. Here's the link: http://aspose.com/file-tools
subject: Is Swing worth the trouble?
Similar Threads
Is swing worth the trouble?
Want to setup Java Classes in My locality but takig a Room on Lease seems to be an issue
Usefulness of learning swings
can you create normal programs/exe's in Java?