What is the difference between Applet and Frame in java?

Showing Answers 1 - 16 of 16 Answers

RaviShankar

  • Oct 16th, 2006
 

Applet is a java program that can be embeded in a web page,i.e it is a program that can run on Html web page,where is frame is an application that run on local machine.

Vickey

  • Nov 28th, 2006
 

Applet : Its an Program used to work with Internet Basis  ... As its is Embeded in an Web page ... To work with Applet we need a Browser ...

Appliacation ... This is a Stand alone Application to fulfill any task ..These type of applications cannot be used for Internet purposes ... To Exeucute an Application we need an Intrepreter called ... java filename

that'sit

Applet:
An application, written in Java, that can run inside a web page, but is not limited by the functionality of HTML. Because applets are separate programmatic objects, they often do not work with accessibility aids, although features are becoming available in the Java language to permit this.

A small Java program that can be embedded in an HTML page. Applets differ from full-fledged Java applications in that they are not allowed to access certain resources on the local computer, such as files and serial devices (modems, printers, etc.), and are prohibited from communicating with most other computers across a network. The current rule is that an applet can only make an Internet connection to the computer from which the applet was sent.


Frame:
A Frame is a top-level window with a title and a border.

  Was this answer useful?  Yes

The difference is based on whether you want a Console based application or a Browser based application. For console applications use Frame and for browser applications use Applet.

The other different is that Applet has FlowLayout as the default layout whereas Frame has Border Layout as the default layout.

  Was this answer useful?  Yes

rajvinder kaur

  • Sep 29th, 2011
 

applet is subclass of panel class. but frame is subclass of window class .applet has no menu bar .frame has menu bar.applet has no border.but frame has border.applet has no title bar but frame has.applet is web based application but frame is standalone application.applet has default layout is null layout.frame has default layout is border layout.

  Was this answer useful?  Yes

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.

 

Related Answered Questions

 

Related Open Questions