Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Q 2 5 . Which of the following is not a JOption Pane method? A . showOutputDialog 0 B . showlnputDialog 0 C . showMessageDialog
Q Which of the following is not a JOption Pane method?
A showOutputDialog
B showlnputDialog
C showMessageDialog
D showConfirmDialog
Q Which of the following is not a JOptionPane message type?
A INFORMATIONMESSAGE
B ERROR MESSAGE
C TEXTMESSAGE
D QUESTIONMESSAGE
Q Which of the following JTextField constructor is given incorrectly?
A JextField textField newJTextField;
B JTextField textField new JTextFieldMy Text Field";
C JTextField textField new JTextField;
D JTextField textField new JTextFieldMy Text Field";
Q Which of the statements about JLabel is incorrect?
A JLabel is inactive to input events such a mouse focus or keyboard focus
B A JLabel displays readonly text, an image, or both text and an image
C JLabels are vertically centered and the user cannot change the alignment of label
D The setText method defines the single line of text that JLabel will display
Q Which one is not included in the Swing button hierarchy?
A JRadioButton
B JoggleButton
C JmageButton
D JCheckBox
Q Which is not one of the methods used for JTable
A addColumn
B setValueAt
C setSelectedRow
D editCellAt
Q Which of the following statements is incorrect
A The JMenuBar class is used to display menubar on the window or frame
B There is only one constructor for JMenuBar
C The object of JMenu class is a pull down menu component which is displayed from the menu bar
D The object of JMenultem class adds a simple labeled menu item to the menu bar
Q Which of the following is false about JTabbedPane?
A It lets the user switch between a group of components by clicking on a tab
B It can store and organize multiple components into distinct tabs
C The getSelectedIndex method can be used to switch to a specific tab
D When the user click on a tab, only data related to that tab will be displayed
Q Which Java GUI component is suitable for hierarchical data representation?
A JTree
B JSlider
C JTextArea
D JProgressBar
Q Which of the following is a special method used to initialize objects of a class?
A Constructor
B Destructor
C Main
D Static
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started