GeeCON Prague 2014*
The moose likes Swing / AWT / SWT and the fly likes Any third party s/w for SWING with IE5 Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "Any third party s/w for SWING with IE5" Watch "Any third party s/w for SWING with IE5" New topic
Author

Any third party s/w for SWING with IE5

Ashik Uzzaman
Ranch Hand

Joined: Jul 05, 2001
Posts: 2370

I use IE5 most of the times and see that IE does not support SWINGs to be displayed in an Applet or more precisely JApplet. Its understandable that by default IE use an old JVM but as JDK 1.3/1.4 is installed it should have been enhanced the power of IE to support SWINGs also....but its not the story....why?
Is there any free third-psrty downloadable s/w or Plug-in to be added with IE5 to work with Swing components in IE?

------------------
Muhammad Ashikuzzaman (Fahim)
Sun Certified Programmer for the Java� 2 Platform
--When you learn something, learn it by heart!


Ashik Uzzaman
Senior Member of Technical Staff, Salesforce.com, San Francisco, CA, USA.
Paul Stevens
Ranch Hand

Joined: May 17, 2001
Posts: 2823
Yes from Sun at their site.
Ashik Uzzaman
Ranch Hand

Joined: Jul 05, 2001
Posts: 2370

Thnx Paul, i got some HTMLConverter or like that....still which one to choose? Have anyone used something particularly as good?....

------------------
Muhammad Ashikuzzaman (Fahim)
Sun Certified Programmer for the Java� 2 Platform
--When you learn something, learn it by heart!
Nathan Pruett
Bartender

Joined: Oct 18, 2000
Posts: 4121

You need to get the Java 2 Plugin, too. The Java 2 Plugin has to be installed in any browser that will run the applet. Htmlconverter has to be run on the HTML file that holds the applet to make it call the Java 2 Plugin instead of the browser JVM.

-Nate


-Nate
Write once, run anywhere, because there's nowhere to hide! - /. A.C.
Ashik Uzzaman
Ranch Hand

Joined: Jul 05, 2001
Posts: 2370

Hi Nathan, thnx for the nice shampane(clarification ). Please have another pague(or peg or pag)....
Then if we do not install jdk in our pc, ie5 uses its old version of jvm to process/see applets. But when we install jdk1.3/1.4, a java plugin is also installed which compels/assists our ie5 to use the latest version of jvm of our jdk.
Right or wrong?

------------------
Muhammad Ashikuzzaman (Fahim)
Sun Certified Programmer for the Java� 2 Platform
--When you learn something, learn it by heart!
Nathan Pruett
Bartender

Joined: Oct 18, 2000
Posts: 4121

Well... partially right... I'll explain a little more...

The JDK is the Java Developers Kit... it has all the stuff programmers need to write and compile Java programs. The JRE is the Java Runtime Environment... it is a subset of the JDK and it just provides a user a way to run Java programs. When you download newer versions of these ( 1.3/1.4 ) the Java 2 Plugin is also provided. The Java 2 Plug-In provides an interface that lets your browser call the JRE on your system when it encounters calls to the plugin in web pages.

OK... now we're clear on exactly what the JDK, JRE, and Java 2 Plug-In are, and we can proceed to how the plugin works. Normally, when a browser encounters an applet tag, it executes that code in a built-in JVM. When a browser has an old JVM ( or none at all, like some new versions of IE ) Java applets will not execute correctly in the browser. So, you use the plugin to point to your new JVM installed with the JRE or JDK. Unfortunately, you can't just use the applet tags in your HTML, because the browser knows that those call the JVM embedded in the browser. So, you have to make a call to the plug-in. This is pretty involved, so Sun provided the htmlconverter program. You just wwrite the applet tag like you normally would in the HTML page, then you run htmlconverter on it and it changes the applet call to a call to the plug-in.

( Out of breath... )

Any more questions?

-Nate
Ashik Uzzaman
Ranch Hand

Joined: Jul 05, 2001
Posts: 2370

Thnx Nathan, outstanding explanation! Another thing is that, is it the reason when in some machines i get my IE unable to show applets? Then do i have to use HTML Converter every time, i see an applet?
Well i'll check tonight it (HTML converter) myself....thnx again.
------------------
Muhammad Ashikuzzaman (Fahim)
Sun Certified Programmer for the Java� 2 Platform
--When you learn something, learn it by heart!
 
GeeCON Prague 2014
 
subject: Any third party s/w for SWING with IE5