Today's Outline
- Create a new PROJECT called Games
- Inside of Games, create a new CLASS called NameChange
- In your Java 2 folder, open the text file "Chapters 4-6 Listings"
(Also available here)
- Copy NameChange (including the import statement above it) into the NameChange
class
- Look at the code and then run the file
- How
are these message boxes made?
- Discuss the JOptionPane
- Talk about why the first parameter is the word null
- Create a new class called ChangeWords that takes two words and tells if
they are the same
An
Additional Reference as to how dialog boxes are made