Two Laptop Bag
The moose likes Applets and the fly likes Swing Applets without Plugin? Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Java » Applets
Reply Bookmark "Swing Applets without Plugin?" Watch "Swing Applets without Plugin?" New topic
Author

Swing Applets without Plugin?

Jordan Drew
Greenhorn

Joined: Aug 22, 2001
Posts: 5
I wanted to write a Swing Applet for a client's site, and am now realizing that Swing is not supported by IE or Netscape without requiring a plug-in.
Can anyone tell me if there is a way to get Swing Applets to run on individual version 4 and 5 browsers without requiring users to download a plug-in?
Any help would be appreciated.
Thanks,
Jordan
Manfred Leonhardt
Ranch Hand

Joined: Jan 09, 2001
Posts: 1492
Hi Jordan,
Sure. Just add about 2.5Mb to your jar file and include the javax.swing.* packages into it.
Regards,
Manfred.
Jordan Drew
Greenhorn

Joined: Aug 22, 2001
Posts: 5
OK here's a follow up question to that...If my JApplet only used for example, JButtons, could I just put the JApplet and JButton class into my jar file, thus greatly reducing the size of the jar?
Thanks again,
Jordan
Nathan Pruett
Bartender

Joined: Oct 18, 2000
Posts: 4121

You would have to put JApplet, JButton, and any classes they use into the jar file... it would actually be much easier to develop the applet in AWT, or use the plug-in.

-Nate


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

Joined: Jan 16, 2001
Posts: 421
I have recently read a book wich had build a 'class(es)' to inspect an application and tell (or builds) all used classes and tried it successfully on examples. But I 'forgot' in which one ... ;-(
(not writing down where this valuable stuff came from, if I get this back I will tell).
Tim Holloway
Saloon Keeper

Joined: Jun 25, 2001
Posts: 14491
    
    7

Well, let's see. JButton invokes the plaf classes, probably the locale classes, graphics layering and rendering classes.... By the time you're done including all that, it'll probably end up being most of the Swing jar anyway.
I don't expect Microsoft to volunteer to make Swing part of its basic Java support - seeing as it now has none. But it would have been nice if at least Netscape would realise that Java Version 1.02 is just a little too archaic!


Customer surveys are for companies who didn't pay proper attention to begin with.
Peter Gragert
Ranch Hand

Joined: Jan 16, 2001
Posts: 421
Found back:
Java-servlets, is the title of the book.y McGraw-Hill by Mark Moss.
name of java files: RollCall.java
together with CreateArchive.java.
Input a 'class' output which classes are called (recursivly done) if extra parameter a jar file containing all the classes is generated.
If interested in only the two files mail me!
Sita Kodali
Ranch Hand

Joined: Dec 02, 2001
Posts: 72
Dear Peter,
Could you please post the code of those 2 java files (RollCall.java and CreateArchive.java)
Thanks
--
Venkat
 
I agree. Here's the link: http://zeroturnaround.com/jrebel - it saves me about five hours per week
 
subject: Swing Applets without Plugin?
 
Similar Threads
about exma help plssssssssss
is applet still important in java ?
Try to resolve
Win XP, IE
Using swing in Java