Syssemoutprinthx(value1+ value2 + value3)); public static void fnainsring[] args
ID: 3692896 • Letter: S
Question
Syssemoutprinthx(value1+ value2 + value3)); public static void fnainsring[] args) Game g-new Gamo) T ON CLOSE a) How manly checkboxes will be displayed in the windows? 5).Consider the following code: (25 pts) b).How are the checkboxes organized in the windows? import jawax swing import ava.aw import java.aw.evee poblic class Game extends JFrame c).What happens when the user checks "Choice 3" only private JChockBox c, c, c3 private int valuel, valuc2, valueš; private Container consents public Game sepent Play this game new FlowLayoutx d).What happens when the w;ser checks "Choice " then checks "Choice 3" el new JCheckBoxt Choice ! contents addkel e) What happens when the user checks "Choice ", then "Choice 2", then "Choice 3"? setSint400,400k setVisible(trugk publik void cisa c2) else if (io getSource) valuc?-2: value2- 0 else value3- 5 clsc value-0Explanation / Answer
a) There are 3 checkboxes displayed in the window
b) All the checkboxes are organized in the ContentPane
c) variable value3 will have 5
d) variables will be set value1 =1 and value3 = 5
e) variables value1 = 1, value2 = 2 and value3 = 5
Related Questions
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.