Sheet 3 Stud
Sheet 3 Stud
TRUE FALSE
8 JButton is created using constructor Jbutton(new
ImageIcon(“c:/a.jpg”))
Then how to set label for it
setActionCommand(String ch)
setCommand(String str) setActionCommand(char ch)
9 In swing CotentPane can be obtained by using
_____________
addContentPane() getContentPane() GetContentPane()
10 JApplet supports various panes like
glasspane,rootpane ,contentpane
True FALSE
11 JApplet class is derived from Jframe
17 Plugable Look & Feel is the feature of AWT Applet Swing Button
18 MutableTreeNode is
extends__________________interface TreeNode MutableTreeNode MutableNode All
19 In Sw ing the content pane can be obtained via
method________
for using Swing control one must getContaintPane() getContentPane() getGlassPane() getRootPane()
20 import______________________________pacak
ge java.applet java.awt javax.swing java.swing
21 Default orientation of progress bar is: Horizontal Vertical None of these
22 To add a component c to JPanel p ,use_______ p.add(c) p.getContentPane( c) p.append ( c) p.insert(c )
23 setToolTipText method is used for ________
components
default tab placement for JTabbedPane setCommand(String str) setActionCommand(char ch) setActionCommand(String ch)
26 is_________
TRUE FALSE
28 What is the best to describe the relationship
between JComponent and JButton