Totel:91 Click:
1
2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19
Swing Interview Questions And Answers
Page 1
Questions 1 Give us the Name of the List LayoutManagers in Java?
Answer
List is here :
> Flow Layout Manager
> Grid Layout Manager
> Box Layout Manager
> Border Layout Manager
> Card Layout Manager
> GridBag Layout Manager.
Questions 2 Difference b/w paint() and paintComponent()?
Answer
The Key point is that the paint() method invokes three methods in the following order :
> PaintComponent()
> paintBorder()
> paintChildren()
As a general rule, in Swing, we should be overriding the paintComponent method unless we know what we are doing paintComponent() paints only component (panel) but paint() paints component and all its children.
Questions 3 How are the elements of a GridBagLayout organized?
Answer
The Elements of a GridBagLayout are organized according to a grid. However, the elements are of different sizes and may occupy more than row or column of the grid. In addition, the rows and columns may have diff sizes.
Questions 4 How are the elements of a borderLayout organized?
Answer
The Elements of a BorderLayout are organized at the borders(North, South, East and West) and the center of a container.
Questions 5 What is the relationship b/w the Canvas class and the Graphics Class?
Answer
A Canvas object provides access to a graphics object via its paint() method.
Goto Page:
1
2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19
Swing Objective Questions And Answers
Swing Objective Questions And Answers
Swing Interview Questions And Answers
Swing Subjective Questions And Answers
R4R,Swing Objective, Swing Subjective, Swing Interview Questions And Answers,Swing,Swing Interview,Swing Questions ,Swing Answers