0% found this document useful (0 votes)
6 views

Chapter 1 5

Uploaded by

laxmank4496
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
6 views

Chapter 1 5

Uploaded by

laxmank4496
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 1

____________component is visible at a time

The concept of the menu bar canbe implemented by using three java
114 1 N R 1 All of these
classes—

115 The coordinate of the upper-left corner of a frame is ________. 1 N R 1 (0, 0)

116 The correct hierchy for panel is 1 N R 1 Component-Container-Panel

The default layout manager for the content pane of a swing based
117 1 N R 1 Border-Layout
applet is

The following specifies the advantages of It is lightweight. It supports


118 pluggable look and feel. It follows MVC (Model View Controller) 1 N R 1 Swing
architecture.

The method drawRect() is used to display an


119 1 N R 1 outlined rectangle
___________________________

120 The method setLabel can be used with what type of Object ? 1 N R 1 TextField.

121 The method ____gets the text of the button jtb is 1 N R 1 jtb.getText( )

122 the method _________ places a menu mu into a menu bar mb. 1 N R 1 mb.add(mu)

The method ______________ sets the foreground color to yellow in


123 1 N R 1 f.setForeground (Color.YELLOW)
Jframe

The method _______________creates a IconImage for file


124 1 N R 1 new ImageIcon("c:\image\us.gif");
c:\image\us.gif

The method ____________________gets the text (or caption) of the


125 1 N R 1 jlbl.getText()
label jlbl

The setBackground() method is part of the following class in java.awt


126 1 N R 1 Component
package:

127 The string parameter to the JButton constructor 1 N R 1 tells what text will appear on the button

The Swing component classes that are used in encapsulate a mutually


128 1 N R 1 ButtonGroup
exclusive set of buttons are?

129 The syntax for drawRect() method is 1 N R 1 drawRect(int top, int left, int width, int height)

130 The TextArea controls create a ________ respectively. 1 N R 1 Multi-line text

131 the various Control Supported by AWT are 1 N R 1 All of these

132 The various controls supported by swing are: 1 N R 1 all of the above

The __________ arranges components in rows and columns and


133 1 N R 1 GridLayout manager
makes all components the same size.

134 The ___________ interface is used to handle button events: 1 N R 1 ActionListener

135 The _____________ class is used to create radio button in AWT 1 N R 1 CheckboxGroup

136 The ___________________ Can be used to enter or display a string 1 N R 1 textfield

These four methods commonly used in? 1)public void add(Component


137 c) 2)public void setSize(int width,int height) 3)public void 1 N R 1 Component class
setLayout(LayoutManager m) 4)public void setVisible(boolean)

138 To create window with title bar which of the following class is used? 1 N R 1 Frame

139 To create file dialog box ______________ class is used 1 N R 1 FileDialog

You might also like