Tuesday, 14 February 2012

What method is used to specify a container's layout? | Core Java

The SetLayout() method is bassically used to specify a container's layout.

Why does JComponent class have add() and remove() methods but Component class does not? | Core Java

JComponent is a subclass of Container and can contain other components and JComponents.

What is difference between Swing and JSF? | Core Java

Many diff are there which is folowing here :
  •  The key difference is that JSF runs on server, It needs a server like Tomcat or WebLogic or WebSphere. It displays HTML to the client.  But Swing program is a stand alone application.

What does Realized mean? | Core Java

Realized mean bassically is  component, Which has been painted on screen or that is ready to be painted. Realization can take place by invoking any of these methods. Which are following as : 
  1.  SetVisible(true),
  2.  Show() or
  3.  Pack().

What is the default layout for a ContentPane in JFC? | Core Java

The Defaulf Layout for the ConteutPane in JFC is that :
  •  BorderLayout.

What are invisible components? | Core Java

Invisible components are bassically light weight components, Which is perform no painting, but can take space in the GUI. This is mainly used for layout management.

What does x mean in javax.swing? | Core Java

x mean in javax.swing is that :
  •  Extension of java.