This preview shows pages 1–2. Sign up to view the full content.
This preview has intentionally blurred sections. Sign up to view the full version.View Full Document
Unformatted text preview: expects 2 int parameters. button1.setSize(2, 5); 6. Tell your button1 to run its getText method. Store the return in a variable of appropriate type. String one = ___Jbutton.getText();___ 7. Instantiate a Color object using the constructor that expects 3 int parameters. Color myFavorite = ___IndexColorModel(122, 355, 100);___ 8. Tell your button1 to run its setBackground method using the Color object from above. button1.setBackground; 9. Instantiate a JPanel object using the default constructor. JPanel peterPanel = ____perterPanel();_________ 10. Instantiate a JTextField object using the default constructor. JTextField box = ___________new JTextField();________...
View Full Document
This note was uploaded on 10/19/2010 for the course CS 161 taught by Professor Wallace during the Fall '08 term at Oregon State.
- Fall '08