Tree, RunTree Questions
You need these files: tree.java and runtree.java.
Current program:
- Is RunTree an applet or void main program?
- What global variables are in RunTree?
- What type of data is in the contentpane of the Frame?
- What does Tree extend?
- Which class has the run method?
- Where is the thread created and started?
- Why does Tree extend JComponent instead of java.lang.Thread?
- What are good pre and post conditions of the constructors in both classes?
Changes to make:
- Change the Tree class so that the constructor allows the user to set a foreground
and background colour.
- Change the RunTree class so that it has two textfields and a button that
allow the user to enter the colours to change.