Answered step by step
Verified Expert Solution
Link Copied!

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

Q25. Which of the following is not a JOption Pane method?
A. showOutputDialog0
B. showlnputDialog0
C. showMessageDialog0
D. showConfirmDialog()
Q26. Which of the following is not a JOptionPane message type?
A. INFORMATION_MESSAGE
B. ERROR MESSAGE
C. TEXT_MESSAGE
D. QUESTION_MESSAGE
Q27. Which of the following JTextField constructor is given incorrectly?
A. JextField textField = newJTextField(10);
B. JTextField textField2= new JTextField("My Text Field");
C. JTextField textField 3 new JTextField();
D. JTextField textField4= new JTextField(20,"My Text Field");
Q28. 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 read-only 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
Q29. Which one is not included in the Swing button hierarchy?
A. JRadioButton
B. JoggleButton
C. JmageButton
D. JCheckBox
Q30. Which is not one of the methods used for JTable
A. addColumn
B. setValueAt
C. setSelectedRow
D. editCellAt
Q31. 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
Q32. 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
Q33. Which Java GUI component is suitable for hierarchical data representation?
A. JTree
B. JSlider
C. JTextArea
D. JProgressBar
Q34. Which of the following is a special method used to initialize objects of a class?
A. Constructor
B. Destructor
C. Main
D. Static
image text in transcribed

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Databases Illuminated

Authors: Catherine Ricardo

2nd Edition

1449606008, 978-1449606008

Students also viewed these Databases questions

Question

RP-13 What does SQ3R stand for?

Answered: 1 week ago

Question

=+d) Explain why its not safe to interpret the y-intercept.

Answered: 1 week ago