applet verses japplet

rahul soni

Greenhorn

Posts: 24

posted 11 years ago

Hi Guys I have a problem? I am not able to decide which is more batter Applet or JApplet. Not:- your ans is should not include japplet is lightweight i want technical reason that is satisfied me and give great conceptual knowledge. That make easy to decide, the(applet/japplet)is much batter

Ulf Dittmer

Rancher

Posts: 42969

73

posted 11 years ago

Essentially this boils down to an AWT vs. Swing question. How comfortable are you using one or the other? Do you need the flexibility of Swing or is AWT adequate? Personally, I wouldn't use JApplet for an applet, just like I wouldn't use AWT for a desktop app; the main reason being the complexity of the GUI (applets tend to have less demanding GUIs). Of course, your requirements could be different.

JApplet adds two major features to the functionality that it inherits from java.applet.Applet. First, Swing applets provide support for assistive technologies. Second, because JApplet is a top-level Swing container, each Swing applet has a root pane. The most noticeable results of the root pane's presence are support for adding a menu bar and the need to use a content pane.