| Course Teaching | You are Offering Professional Course | Locality Gandhipuram |
Application Conversion to Applets
It is easy to convert a graphical Java application (that is, an application that uses the AWT and that you can start with the Java program launcher) into an applet that you can embed in a web page.
Following are the specific steps for converting an application to an applet.
Make an HTML page with the appropriate tag to load the applet code.
Supply a subclass of the JApplet class. Make this class public. Otherwise, the applet cannot be loaded.
Eliminate the main method in the application. Do not construct a frame window for the application. Your application will be displayed inside the browser.
Move any initialization code from the frame window constructor to the init method of the applet. You don't need to explicitly construct the applet object. The browser instantiates it for you and calls the init method.
Remove the call to setSize; for applets, sizing is done with the width and height parameters in the HTML file.
Remove the call to setDefaultCloseOperation. An applet cannot be closed; it terminates when the browser exits.
If the application calls setTitle, eliminate the call to the method. Applets cannot have title bars. (You can, of course, title the web page itself, using the HTML title tag.)
Don't call setVisible(true). The applet is displayed automatically.
Step once At Fu-VISION for Faster growth, Better salary and make your career Bright!
PLS CONTACTFOR MORE DETAILS CALL IMMEDIATE: 9360029290 / 9003206648
Fu-VISION TRANING SOLUTION PVT LTD
COIMBATORE: HEAD OFFICE
NO: 96-A SREE NAGAR,
PALANI AANDAVAR ILLAM, 1nd FLOOR
OPP KRISHNA SWEETS,
AVINASHI ROAD, PEELAMEDU,
HOPES COLLEGE BUS STOP ,
COIMBATORE-641004
COIMBATORE: BRANCH
2nd FLOOR, SAI TOWERS,
DIAGONALLY OPP TO GANGA-YAMUNA-KAVERI THEATRE
ABOVE BAJAJ MOTORCYCLES,
GP (100FT ROAD)
COIMBATORE-641012
MAIL ID: [email protected]
Website:www.fu-vision.com / www.fu-vision.in