Core Java

Swing Interview Questions And Answers
More interview questions and answers

Which method of the Component class is used to set the position and size of a component?

Which method is used by the applet to recognize the height and width?

How are the elements of different layouts organized?

What is default Look-and-Feel of a Swing Component?

What is difference between Swing and JSF?

What is the diff b/w choice and the List ?

What\'s Java Swing?

What is JFC?

What is AWT?

What are the differences between Swing and AWT?

What are heavy weight components ?

What is lightweight component?

What is double buffering ?

What is an event in Swing?

What is an event handler in swing?

What is a layout manager?

What is clipping?

Which containers use a border Layout as their default layout in swing?

What is the preferred size of a component?

What method is used to specify a container\'s layout?

Which containers use a FlowLayout as their default layout?

What is the What is the difference between invokeAndWait() and invokeLater()? ?

Why should any swing call back implementation execute quickly?

What is an applet?

What is the difference between applications and applets?

When we should go for codebase in applet?

What is the lifecycle of an applet?

Which method is used for setting security in applets?

What is an event and what are the models available for event handling?

What are the advantages of the event-delegation model over the event-inheritance model?

Can a class be it\'s own event handler? Explain how to implement this?

Why does JComponent have add() and remove() methods but Component does not?

How would you create a button with rounded edges?

Explain how to render an HTML page using only Swing?

How would you detect a keypress in a JComboBox?

What is the difference between the Font and FontMetrics class?

What class is at the top of the AWT event hierarchy?

Why should the implementation of any Swing callback (like a listener) execute quickly?

In what context should the value of Swing components be updated directly?

Why would you use SwingUtilities.invokeAndWait or SwingUtilities.invokeLater?

If your UI seems to freeze periodically, what might be a likely reason?

Which Swing methods are thread-safe?

Why won�t the JVM terminate when I close all the application windows?

What is double buffering ?

What is an event?

What is an event handler ?

Which containers use a border Layout as their default layout?

What method is used to specify a container\'s layout?

What is the difference between invokeAndWait() and invokeLater()?

Why should any swing call back implementation execute quickly?

Which method is used by the applet to recognize the height and width?

What is source and listener ?

What is controls and what are different types of controls in AWT?

What is the difference between choice and list?

What is the difference between scrollbar and scrollpane?

What is a layout manager and what are different types of layout managers available?

What are types of applets?

What are the restrictions imposed by a Security Manager on Applets?

What is the difference between the Font and FontMetrics classes?

What is the relationship between an event-listener interface and an event-adapter class?

How can a GUI component handle its own events?

What is the difference between the paint() and repaint() methods?

What interface is extended by AWT event listeners?

What is Canvas ?

What are the features of JFC?

What does x mean in javax.swing?

What are invisible components?

What is the default layout for a ContentPane in JFC?

What does Realized mean?

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

What method is used to specify a container\'s layout?

What is the difference between AWT and SWT?

What is the difference between JFC & WFC?

What is a convertor?

What is the difference between a Canvas and a Scroll Pane?

What is the purpose of the enableEvents() method?

What is the difference between a MenuItem and a CheckboxMenuItem?

Which is the super class of all event classes?

How the Canvas class and the Graphics class are related?

What is the difference between a Window and a Frame?

What is the relationship between clipping and repainting?

What advantage do Java\'s layout managers provide over traditional windowing systems?

When should the method invokeLater() be used?

Which component subclass is used for the drawing and painting ?

Which containers may have a menu bar?

Which class is the immediate supar class of the menuComponent class?

What is the relationship b/w the Canvas class and the Graphics Class?

How are the elements of a borderLayout organized?

How are the elements of a GridBagLayout organized?

Difference b/w paint() and paintComponent()?

Give us the Name of the List LayoutManagers in Java?