Swing Interview Questions and Answers

Swing Interview Questions and Answers

Swing is a GUI (Graphical User Interface) widget toolkit for Java. It is part of Oracle’s JFC (Java Foundation Classes) an API for providing a GUI for Java programs. It provides a richer set of components than AWT. Swing is an advanced GUI toolkit. It has a rich set of widgets. From basic widgets like buttons, labels, scrollbars to advanced widgets like trees and tables. Swing itself is written in Java.

What is Java Swing?

What are the new features of Java Swing?

How are the elements of different layouts organized?

What are the differences between Java AWT and Java Swing?

What are the different Swing Components?

What is JFC?

What is a Container in a GUI?

What is the heavyweight component?

What is the Lightweight Component?

What is AWT?

What is JButton?

What is JLabel?

What is Double Buffering?

How to make an executable jar file in Java

What method is used to specify a container’s layout?

How can a GUI component handle its own events?

Why should any swing call back implementation execute quickly?

What is the function of the paint() and repaint() methods?

What is the preferred size of a component?

What is the use of the enableEvents() method?

What are the Layoutmanagers in Java?

What is the difference between invokeandwait() and invokelater()?

What is the difference between applications and applets?

Can you explain TransferHandler Class?

What is Realized?

Which is the super class of all event classes?

What is the default layout for a content pane in JFC?

What is the lifecycle of an applet?

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

Can you explain Serialization in Swing?

How the canvas class and the graphics class are related?

Can you explain Internal Frame in Swing?

Can you explain the Swing delegation event model?

Follow us on Social Media

Related Posts

No Comments

Post a Reply