Tuesday, 14 February 2012

Which is the super class of all event classes? | Core Java

The java.awt.AWTEvent class is the highest-level class in the AWT event-class hierarchy.

What is the difference between a MenuItem and a CheckboxMenuItem? | Core Java

The CheckboxMenuItem class extends the MenuItem class to support a menu item that may be checked or unchecked.

What is the purpose of the enableEvents() method? | Core Java

The enableEvents() method is used to enable an event for a particular object. Normally, an event is enabled when a listener is added to an object for a particular event. The enableEvents() method is used by objects that handle events by overriding their event-dispatch methods.

What is the difference between a Canvas and a Scroll Pane? | Core Java

Many diff are there :
  • Canvas is a component. ScrollPane is a container. 
  •  Canvas is a rectangular area where the application can draw or trap input events. 
  • ScrollPane implements horizontal and vertical scrolling.

What is a convertor? | Core Java

Converter is bassically an application that converts distance measurements between metric and U.S units.

What is the difference between JFC & WFC? | Core Java

  JFC : JFC supports robust and portable user interfaces. The Swing classes are robust, compatible with AWT, and provide you with a great deal of control over a user interface. Since source code is available, it is relatively easy to extend the JFC to do exactly what you need it to do. But the number of third-party controls written for Swing is still relatively small.
WFC : WFC runs only on the Windows (32-bit) user interface, and uses Microsoft extensions to Java for event handling and ActiveX integration. Because ActiveX components are available to WFC programs, there are theoretically more controls available for WFC than for JFC. In practice, however, most ActiveX vendors do not actively support WFC, so the number of controls available for WFC is probably smaller than for JFC. The WFC programming model is closely aligned with the Windows platform.

What is the difference between AWT and SWT? | Core Java

SWT : SWT is stands for Standard Widget Toolkit, It is a completely independent Graphical User Interface (GUI) toolkit from IBM. They created it for the creation of Eclipse Integrated Development Environment (IDE). AWT : AWT is from Sun Microsystems.