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

Chapter 1 3

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)
15 views

Chapter 1 3

Uploaded by

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

52 FileDialog is which kind of dialog box?

1 N R 1 Modaltype

53 FlowLayout arranges components from 1 N R 1 Left to Right

54 FlowLayout does not support this value of alignment… 1 N R 1 FlowLayout.BASELINE

55 Font class is available in ___________ 1 N R 1 java.awt package

56 For adding controls to a window, we use following method 1 N R 1 add()

for using Swing control one must


57 1 N R 1 import javax.swing.*
import______________________________pacakge

Frame is a standard window,which is ____________________of


58 1 N R 1 sub class
Window class from AWT hierarchy

59 getContentPane() method of which class 1 N R 1 JApplet

60 getSelectedCheckbox() mehod of which class 1 N R 1 CheckboxGroup

61 How can the Checkbox class be used to create a radio button in AWT? 1 N R 1 By associating Checkbox objects with a CheckboxGroup

62 How do you change the current layout managers for a container? 1 N R 1 Use the setLayout() method

63 How many checkboxes we can check at a time: 1 N R 1 multiple

64 How To Apply Image To Button ? 1 N R 1 Using ImageIcon

65 How would you set the color of a graphics context called g to cyan? 1 N R 1 g.setColor(Color.cyan);

66 Identify the correct constructor of Font class? 1 N R 1 Font( String name, int fontstyle,int pointsize)

67 Identify wrong constructor of Checkbox 1 N R 1 None of Above

In applet, which of the following tag is used for accepting user defined
68 1 N R 1 Param
parameter?

69 In AWT Checkbox class is used to create __________ 1 N R 1 Checkbox and Radio buttons

70 In AWT Radio buttons are created using_____________________ 1 N R 1 CheckBoxGroup

71 In FlowLayout manager the default space between each component is 1 N R 1 5 Pixel

In Graphics class Which method is used to set the graphics current


72 1 N R 1 public abstract void setColor(Color c)
color to the specified color?

73 In how many ways we can define the scrollbar? 1 N R 1 All of the above

74 In Swing Buttons are the subclasses of which class? 1 N R 1 AbstractButton

75 In Swing the content pane can be obtained via method________ 1 N R 1 getContentPane()

In Swing ____________is a component that displays rows and


76 1 N R 1 table
columns of data.

77 In Swing, tables are implemented by the ______________ class 1 N R 1 JTable

78 Indentify which is a valid constructor of MenuItem class? 1 N R 1 MenuItem(String Itemname)

79 Items are added in JComboBox using method……? 1 N R 1 addItem()

80 JApplet class is Derived form 1 N R 1 Applet

Java supports input/output of data through the classes included in the


81 1 N R 1 Java.io
_______ package:

82 JCheckBox is _______________________Component 1 N R 1 lightweight

You might also like