Warning: include() [function.include]: URL file-access is disabled in the server configuration in C:\Inetpub\vhosts\r4r.co.in\httpdocs\java\advancejava\swing\swing_Interview_Questions_And_Answers\swing_Subjective_Questions_And_Answers.php on line 39

Warning: include(http://r4r.co.in/common-files/topheader.shtml) [function.include]: failed to open stream: no suitable wrapper could be found in C:\Inetpub\vhosts\r4r.co.in\httpdocs\java\advancejava\swing\swing_Interview_Questions_And_Answers\swing_Subjective_Questions_And_Answers.php on line 39

Warning: include() [function.include]: Failed opening 'http://r4r.co.in/common-files/topheader.shtml' for inclusion (include_path='.;./includes;./pear') in C:\Inetpub\vhosts\r4r.co.in\httpdocs\java\advancejava\swing\swing_Interview_Questions_And_Answers\swing_Subjective_Questions_And_Answers.php on line 39

Warning: include() [function.include]: URL file-access is disabled in the server configuration in C:\Inetpub\vhosts\r4r.co.in\httpdocs\java\advancejava\swing\swing_Interview_Questions_And_Answers\swing_Subjective_Questions_And_Answers.php on line 44

Warning: include(http://r4r.co.in/common-files/header.shtml) [function.include]: failed to open stream: no suitable wrapper could be found in C:\Inetpub\vhosts\r4r.co.in\httpdocs\java\advancejava\swing\swing_Interview_Questions_And_Answers\swing_Subjective_Questions_And_Answers.php on line 44

Warning: include() [function.include]: Failed opening 'http://r4r.co.in/common-files/header.shtml' for inclusion (include_path='.;./includes;./pear') in C:\Inetpub\vhosts\r4r.co.in\httpdocs\java\advancejava\swing\swing_Interview_Questions_And_Answers\swing_Subjective_Questions_And_Answers.php on line 44

Warning: include() [function.include]: URL file-access is disabled in the server configuration in C:\Inetpub\vhosts\r4r.co.in\httpdocs\java\advancejava\swing\swing_Interview_Questions_And_Answers\swing_Subjective_Questions_And_Answers.php on line 49

Warning: include(http://r4r.co.in/common-files/bottomheader.shtml) [function.include]: failed to open stream: no suitable wrapper could be found in C:\Inetpub\vhosts\r4r.co.in\httpdocs\java\advancejava\swing\swing_Interview_Questions_And_Answers\swing_Subjective_Questions_And_Answers.php on line 49

Warning: include() [function.include]: Failed opening 'http://r4r.co.in/common-files/bottomheader.shtml' for inclusion (include_path='.;./includes;./pear') in C:\Inetpub\vhosts\r4r.co.in\httpdocs\java\advancejava\swing\swing_Interview_Questions_And_Answers\swing_Subjective_Questions_And_Answers.php on line 49

Warning: include() [function.include]: URL file-access is disabled in the server configuration in C:\Inetpub\vhosts\r4r.co.in\httpdocs\java\advancejava\swing\swing_Interview_Questions_And_Answers\swing_Subjective_Questions_And_Answers.php on line 55

Warning: include(http://r4r.co.in/common-files/menu.shtml) [function.include]: failed to open stream: no suitable wrapper could be found in C:\Inetpub\vhosts\r4r.co.in\httpdocs\java\advancejava\swing\swing_Interview_Questions_And_Answers\swing_Subjective_Questions_And_Answers.php on line 55

Warning: include() [function.include]: Failed opening 'http://r4r.co.in/common-files/menu.shtml' for inclusion (include_path='.;./includes;./pear') in C:\Inetpub\vhosts\r4r.co.in\httpdocs\java\advancejava\swing\swing_Interview_Questions_And_Answers\swing_Subjective_Questions_And_Answers.php on line 55

Warning: include() [function.include]: URL file-access is disabled in the server configuration in C:\Inetpub\vhosts\r4r.co.in\httpdocs\java\advancejava\swing\swing_Interview_Questions_And_Answers\swing_Subjective_Questions_And_Answers.php on line 62

Warning: include(http://r4r.co.in/common-files/gaps.shtml) [function.include]: failed to open stream: no suitable wrapper could be found in C:\Inetpub\vhosts\r4r.co.in\httpdocs\java\advancejava\swing\swing_Interview_Questions_And_Answers\swing_Subjective_Questions_And_Answers.php on line 62

Warning: include() [function.include]: Failed opening 'http://r4r.co.in/common-files/gaps.shtml' for inclusion (include_path='.;./includes;./pear') in C:\Inetpub\vhosts\r4r.co.in\httpdocs\java\advancejava\swing\swing_Interview_Questions_And_Answers\swing_Subjective_Questions_And_Answers.php on line 62

Warning: include() [function.include]: URL file-access is disabled in the server configuration in C:\Inetpub\vhosts\r4r.co.in\httpdocs\java\advancejava\swing\swing_Interview_Questions_And_Answers\swing_Subjective_Questions_And_Answers.php on line 72

Warning: include(http://r4r.co.in/common-files/tdgaps.shtml) [function.include]: failed to open stream: no suitable wrapper could be found in C:\Inetpub\vhosts\r4r.co.in\httpdocs\java\advancejava\swing\swing_Interview_Questions_And_Answers\swing_Subjective_Questions_And_Answers.php on line 72

Warning: include() [function.include]: Failed opening 'http://r4r.co.in/common-files/tdgaps.shtml' for inclusion (include_path='.;./includes;./pear') in C:\Inetpub\vhosts\r4r.co.in\httpdocs\java\advancejava\swing\swing_Interview_Questions_And_Answers\swing_Subjective_Questions_And_Answers.php on line 72

Warning: include() [function.include]: URL file-access is disabled in the server configuration in C:\Inetpub\vhosts\r4r.co.in\httpdocs\java\advancejava\swing\swing_Interview_Questions_And_Answers\swing_Subjective_Questions_And_Answers.php on line 139

Warning: include(http://r4r.co.in/common-files/tdgaps.shtml) [function.include]: failed to open stream: no suitable wrapper could be found in C:\Inetpub\vhosts\r4r.co.in\httpdocs\java\advancejava\swing\swing_Interview_Questions_And_Answers\swing_Subjective_Questions_And_Answers.php on line 139

Warning: include() [function.include]: Failed opening 'http://r4r.co.in/common-files/tdgaps.shtml' for inclusion (include_path='.;./includes;./pear') in C:\Inetpub\vhosts\r4r.co.in\httpdocs\java\advancejava\swing\swing_Interview_Questions_And_Answers\swing_Subjective_Questions_And_Answers.php on line 139
R4R JAVA Advance Java Swing Swing FAQS Swing Subjective Questions and Answers

 


Tolal:91 Click: 1 2 3 4 5
Previous Home Next

Swing Interview Questions And Answers

Page 1

Ques: 1 Give us the Name of the List LayoutManagers in Java?

Ans:
List is here : > Flow Layout Manager > Grid Layout Manager > Box Layout Manager > Border Layout Manager > Card Layout Manager > GridBag Layout Manager.

Ques: 2 Difference b/w paint() and paintComponent()?

Ans:
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.

Ques: 3 How are the elements of a GridBagLayout organized?

Ans:
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.

Ques: 4 How are the elements of a borderLayout organized?

Ans:
The Elements of a BorderLayout are organized at the borders(North, South, East and West) and the center of a container.

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

Ans:
A Canvas object provides access to a graphics object via its paint() method.

Ques: 6 Which class is the immediate supar class of the menuComponent class?

Ans:
Object.

Ques: 7 Which containers may have a menu bar?

Ans:
Frame

Ques: 8 Which component subclass is used for the drawing and painting ?

Ans:
Canvas

Ques: 9 What is the diff b/w choice and the List ?

Ans:
Many diff are there : > A Choice is displayed in a compact from that requires we to pull ot down to see the list of available choice, Oly one item may be selected from a Choice. > A List may be dsplyaed in such a way that several List items are visible. A List supports the selection of the one or more List items .

Ques: 10 When should the method invokeLater() be used?

Ans:
This method is used to ensure that Swing components are updated through the event-dispatching thread.

Ques: 11 What advantage do Java's layout managers provide over traditional windowing systems?

Ans:
Java uses layout managers to lay out components in a consistent manner across all windowing platforms. Since Java's layout managers aren't tied to absolute sizing and positioning, they are able to accommodate platform-specific differences among windowing systems.

Ques: 12 What is the relationship between clipping and repainting?

Ans:
When a window is repainted by the AWT painting thread, it sets the clipping regions to the area of the window that requires repainting.

Ques: 13 What is the difference between a Window and a Frame?

Ans:
The Frame class extends Window to define a main application window that can have a menu bar. A window can be modal.

Ques: 14 How the Canvas class and the Graphics class are related?

Ans:
A Canvas object provides access to a Graphics object via its paint() method.

Ques: 15 Which is the super class of all event classes?

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

Ques: 16 What is the difference between a MenuItem and a CheckboxMenuItem?

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

Ques: 17 What is the purpose of the enableEvents() method? 

Ans:
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.

Ques: 18 What is the difference between a Canvas and a Scroll Pane?

Ans:
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.

Ques: 19 What is a convertor?

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

Ques: 20 What is the difference between JFC & WFC? 

Ans:
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 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.


Goto Page:

1 2 3 4 5
Share |

Swing Objective

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


Warning: include() [function.include]: URL file-access is disabled in the server configuration in C:\Inetpub\vhosts\r4r.co.in\httpdocs\java\advancejava\swing\swing_Interview_Questions_And_Answers\swing_Subjective_Questions_And_Answers.php on line 108

Warning: include(http://r4r.co.in/common-files/adsnewsgaps.shtml) [function.include]: failed to open stream: no suitable wrapper could be found in C:\Inetpub\vhosts\r4r.co.in\httpdocs\java\advancejava\swing\swing_Interview_Questions_And_Answers\swing_Subjective_Questions_And_Answers.php on line 108

Warning: include() [function.include]: Failed opening 'http://r4r.co.in/common-files/adsnewsgaps.shtml' for inclusion (include_path='.;./includes;./pear') in C:\Inetpub\vhosts\r4r.co.in\httpdocs\java\advancejava\swing\swing_Interview_Questions_And_Answers\swing_Subjective_Questions_And_Answers.php on line 108

Warning: include() [function.include]: URL file-access is disabled in the server configuration in C:\Inetpub\vhosts\r4r.co.in\httpdocs\java\advancejava\swing\swing_Interview_Questions_And_Answers\swing_Subjective_Questions_And_Answers.php on line 119

Warning: include(http://r4r.co.in/common-files/adsnewsgaps.shtml) [function.include]: failed to open stream: no suitable wrapper could be found in C:\Inetpub\vhosts\r4r.co.in\httpdocs\java\advancejava\swing\swing_Interview_Questions_And_Answers\swing_Subjective_Questions_And_Answers.php on line 119

Warning: include() [function.include]: Failed opening 'http://r4r.co.in/common-files/adsnewsgaps.shtml' for inclusion (include_path='.;./includes;./pear') in C:\Inetpub\vhosts\r4r.co.in\httpdocs\java\advancejava\swing\swing_Interview_Questions_And_Answers\swing_Subjective_Questions_And_Answers.php on line 119

Warning: include() [function.include]: URL file-access is disabled in the server configuration in C:\Inetpub\vhosts\r4r.co.in\httpdocs\java\advancejava\swing\swing_Interview_Questions_And_Answers\swing_Subjective_Questions_And_Answers.php on line 129

Warning: include(http://r4r.co.in/common-files/adsnewsgaps.shtml) [function.include]: failed to open stream: no suitable wrapper could be found in C:\Inetpub\vhosts\r4r.co.in\httpdocs\java\advancejava\swing\swing_Interview_Questions_And_Answers\swing_Subjective_Questions_And_Answers.php on line 129

Warning: include() [function.include]: Failed opening 'http://r4r.co.in/common-files/adsnewsgaps.shtml' for inclusion (include_path='.;./includes;./pear') in C:\Inetpub\vhosts\r4r.co.in\httpdocs\java\advancejava\swing\swing_Interview_Questions_And_Answers\swing_Subjective_Questions_And_Answers.php on line 129

New Updates


Warning: include() [function.include]: URL file-access is disabled in the server configuration in C:\Inetpub\vhosts\r4r.co.in\httpdocs\java\advancejava\swing\swing_Interview_Questions_And_Answers\swing_Subjective_Questions_And_Answers.php on line 103

Warning: include(http://r4r.co.in/common-files/ads3.shtml) [function.include]: failed to open stream: no suitable wrapper could be found in C:\Inetpub\vhosts\r4r.co.in\httpdocs\java\advancejava\swing\swing_Interview_Questions_And_Answers\swing_Subjective_Questions_And_Answers.php on line 103

Warning: include() [function.include]: Failed opening 'http://r4r.co.in/common-files/ads3.shtml' for inclusion (include_path='.;./includes;./pear') in C:\Inetpub\vhosts\r4r.co.in\httpdocs\java\advancejava\swing\swing_Interview_Questions_And_Answers\swing_Subjective_Questions_And_Answers.php on line 103

Warning: include() [function.include]: URL file-access is disabled in the server configuration in C:\Inetpub\vhosts\r4r.co.in\httpdocs\java\advancejava\swing\swing_Interview_Questions_And_Answers\swing_Subjective_Questions_And_Answers.php on line 114

Warning: include(http://r4r.co.in/common-files/ads4.shtml) [function.include]: failed to open stream: no suitable wrapper could be found in C:\Inetpub\vhosts\r4r.co.in\httpdocs\java\advancejava\swing\swing_Interview_Questions_And_Answers\swing_Subjective_Questions_And_Answers.php on line 114

Warning: include() [function.include]: Failed opening 'http://r4r.co.in/common-files/ads4.shtml' for inclusion (include_path='.;./includes;./pear') in C:\Inetpub\vhosts\r4r.co.in\httpdocs\java\advancejava\swing\swing_Interview_Questions_And_Answers\swing_Subjective_Questions_And_Answers.php on line 114

Warning: include() [function.include]: URL file-access is disabled in the server configuration in C:\Inetpub\vhosts\r4r.co.in\httpdocs\java\advancejava\swing\swing_Interview_Questions_And_Answers\swing_Subjective_Questions_And_Answers.php on line 125

Warning: include(http://r4r.co.in/common-files/ads5.shtml) [function.include]: failed to open stream: no suitable wrapper could be found in C:\Inetpub\vhosts\r4r.co.in\httpdocs\java\advancejava\swing\swing_Interview_Questions_And_Answers\swing_Subjective_Questions_And_Answers.php on line 125

Warning: include() [function.include]: Failed opening 'http://r4r.co.in/common-files/ads5.shtml' for inclusion (include_path='.;./includes;./pear') in C:\Inetpub\vhosts\r4r.co.in\httpdocs\java\advancejava\swing\swing_Interview_Questions_And_Answers\swing_Subjective_Questions_And_Answers.php on line 125

Warning: include() [function.include]: URL file-access is disabled in the server configuration in C:\Inetpub\vhosts\r4r.co.in\httpdocs\java\advancejava\swing\swing_Interview_Questions_And_Answers\swing_Subjective_Questions_And_Answers.php on line 146

Warning: include(http://r4r.co.in/common-files/gaps.shtml) [function.include]: failed to open stream: no suitable wrapper could be found in C:\Inetpub\vhosts\r4r.co.in\httpdocs\java\advancejava\swing\swing_Interview_Questions_And_Answers\swing_Subjective_Questions_And_Answers.php on line 146

Warning: include() [function.include]: Failed opening 'http://r4r.co.in/common-files/gaps.shtml' for inclusion (include_path='.;./includes;./pear') in C:\Inetpub\vhosts\r4r.co.in\httpdocs\java\advancejava\swing\swing_Interview_Questions_And_Answers\swing_Subjective_Questions_And_Answers.php on line 146

Warning: include() [function.include]: URL file-access is disabled in the server configuration in C:\Inetpub\vhosts\r4r.co.in\httpdocs\java\advancejava\swing\swing_Interview_Questions_And_Answers\swing_Subjective_Questions_And_Answers.php on line 151

Warning: include(http://r4r.co.in/common-files/row.shtml) [function.include]: failed to open stream: no suitable wrapper could be found in C:\Inetpub\vhosts\r4r.co.in\httpdocs\java\advancejava\swing\swing_Interview_Questions_And_Answers\swing_Subjective_Questions_And_Answers.php on line 151

Warning: include() [function.include]: Failed opening 'http://r4r.co.in/common-files/row.shtml' for inclusion (include_path='.;./includes;./pear') in C:\Inetpub\vhosts\r4r.co.in\httpdocs\java\advancejava\swing\swing_Interview_Questions_And_Answers\swing_Subjective_Questions_And_Answers.php on line 151
R4R
R4R
R4R
R4R
R4R
R4R
R4R
R4R

Warning: include() [function.include]: URL file-access is disabled in the server configuration in C:\Inetpub\vhosts\r4r.co.in\httpdocs\java\advancejava\swing\swing_Interview_Questions_And_Answers\swing_Subjective_Questions_And_Answers.php on line 163

Warning: include(http://r4r.co.in/common-files/gaps.shtml) [function.include]: failed to open stream: no suitable wrapper could be found in C:\Inetpub\vhosts\r4r.co.in\httpdocs\java\advancejava\swing\swing_Interview_Questions_And_Answers\swing_Subjective_Questions_And_Answers.php on line 163

Warning: include() [function.include]: Failed opening 'http://r4r.co.in/common-files/gaps.shtml' for inclusion (include_path='.;./includes;./pear') in C:\Inetpub\vhosts\r4r.co.in\httpdocs\java\advancejava\swing\swing_Interview_Questions_And_Answers\swing_Subjective_Questions_And_Answers.php on line 163

Warning: include() [function.include]: URL file-access is disabled in the server configuration in C:\Inetpub\vhosts\r4r.co.in\httpdocs\java\advancejava\swing\swing_Interview_Questions_And_Answers\swing_Subjective_Questions_And_Answers.php on line 169

Warning: include(http://r4r.co.in/common-files/row.shtml) [function.include]: failed to open stream: no suitable wrapper could be found in C:\Inetpub\vhosts\r4r.co.in\httpdocs\java\advancejava\swing\swing_Interview_Questions_And_Answers\swing_Subjective_Questions_And_Answers.php on line 169

Warning: include() [function.include]: Failed opening 'http://r4r.co.in/common-files/row.shtml' for inclusion (include_path='.;./includes;./pear') in C:\Inetpub\vhosts\r4r.co.in\httpdocs\java\advancejava\swing\swing_Interview_Questions_And_Answers\swing_Subjective_Questions_And_Answers.php on line 169

Warning: include() [function.include]: URL file-access is disabled in the server configuration in C:\Inetpub\vhosts\r4r.co.in\httpdocs\java\advancejava\swing\swing_Interview_Questions_And_Answers\swing_Subjective_Questions_And_Answers.php on line 176

Warning: include(http://r4r.co.in/common-files/hotlinks.shtml) [function.include]: failed to open stream: no suitable wrapper could be found in C:\Inetpub\vhosts\r4r.co.in\httpdocs\java\advancejava\swing\swing_Interview_Questions_And_Answers\swing_Subjective_Questions_And_Answers.php on line 176

Warning: include() [function.include]: Failed opening 'http://r4r.co.in/common-files/hotlinks.shtml' for inclusion (include_path='.;./includes;./pear') in C:\Inetpub\vhosts\r4r.co.in\httpdocs\java\advancejava\swing\swing_Interview_Questions_And_Answers\swing_Subjective_Questions_And_Answers.php on line 176

Warning: include() [function.include]: URL file-access is disabled in the server configuration in C:\Inetpub\vhosts\r4r.co.in\httpdocs\java\advancejava\swing\swing_Interview_Questions_And_Answers\swing_Subjective_Questions_And_Answers.php on line 181

Warning: include(http://r4r.co.in/common-files/gaps.shtml) [function.include]: failed to open stream: no suitable wrapper could be found in C:\Inetpub\vhosts\r4r.co.in\httpdocs\java\advancejava\swing\swing_Interview_Questions_And_Answers\swing_Subjective_Questions_And_Answers.php on line 181

Warning: include() [function.include]: Failed opening 'http://r4r.co.in/common-files/gaps.shtml' for inclusion (include_path='.;./includes;./pear') in C:\Inetpub\vhosts\r4r.co.in\httpdocs\java\advancejava\swing\swing_Interview_Questions_And_Answers\swing_Subjective_Questions_And_Answers.php on line 181

Warning: include() [function.include]: URL file-access is disabled in the server configuration in C:\Inetpub\vhosts\r4r.co.in\httpdocs\java\advancejava\swing\swing_Interview_Questions_And_Answers\swing_Subjective_Questions_And_Answers.php on line 188

Warning: include(http://r4r.co.in/common-files/footer.shtml) [function.include]: failed to open stream: no suitable wrapper could be found in C:\Inetpub\vhosts\r4r.co.in\httpdocs\java\advancejava\swing\swing_Interview_Questions_And_Answers\swing_Subjective_Questions_And_Answers.php on line 188

Warning: include() [function.include]: Failed opening 'http://r4r.co.in/common-files/footer.shtml' for inclusion (include_path='.;./includes;./pear') in C:\Inetpub\vhosts\r4r.co.in\httpdocs\java\advancejava\swing\swing_Interview_Questions_And_Answers\swing_Subjective_Questions_And_Answers.php on line 188