Frames Questions
A. Runner and Clicker
Main Makes Jframe => Runner into Jframe => Click into Runner
- Where is the actual JFrame declared and created? (Specify class and method)
- What three things need to be done to create the JFrame?
- What is put into the contentPane of the Jframe?
- What does Clicker contain?
- What does Clicker do?
- Add another button to Clicker whose text goes between "Ya" and
"Hoo" when clicked. This is in addition to the first button.
B. Partner Frames
- Get a partner.
- O ne partner needs to code the frame to run a class called "ReallyGreatClass".
- The other partner needs to code the "ReallyGreatClass". In this
class, there is a button. When it is clicked, it adds one to the score and
displays the new score.
- Show Ms. Gorski when finished.
C. More Partner Frames
- Get a partner.
- One partner needs to code the frame to run a class called "ColourfulClass".
- The other partner needs to code the "ColourfulClass". In this
class, there are 4 buttons: Red, Yellow, Green and Magenta. When they are
clicked, they change the background to the label indicated by their label.
- Show Ms. Gorski when finished.