Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

JTable JButton JPanel JFrame 1 2 3 4 1.(TCOs 1, 3, and 6) Which statement can be

ID: 2080734 • Letter: J

Question

       JTable
       JButton
       JPanel
       JFrame

       1
       2
       3
       4

1.(TCOs 1, 3, and 6) Which statement can be used to input an integer using JOptionPane? (Points : 3)        int num = JOptionPane.showInputDialog(“Enter number: ”);
       int num = JOptionPane.getInput(“Enter number: ”);
       int num = Integer.parseInt(JOptionPane.showInputDialog(“Enter number: ”);
       int num = Integer.parseInt(JOptionPane.getInput(“Enter number: ”)); 2.Question 3.3. (TCOs 1, 3, and 6) A(n) _____ has a border and contains all of the normal window controls for your operating system, such as minimize, maximize, and close buttons. (Points : 3)

       JTable
       JButton
       JPanel
       JFrame

3.(TCOs 1, 3, and 6) Suppose a JFrame uses GridLayout(0,2). If you add six buttons to the frame, how many rows are displayed? (Points : 3)

       1
       2
       3
       4

Explanation / Answer

1) Answer: int num=joptionpane.showinputDialog("Enter number: ");

2) Answer: jFrame

Explanation: A Top level container utilized to indicate the minimum needs to a window.it contains the title bar,controls and event handlers for several events such as WindowClosed and WindowOpened..etc

3) Answer: 3 Rows