Java Reference
In-Depth Information
Figure 4-1.
EmpFrame inherited the size (400, 400) and location (350, 250) of UsefulFrame. Can you see how useful the
superclass/subclass relationship can be? For instance, do you see any other code in EmpFrame that could go into
the superclass UsefulFrame?
6.
Of course, it's the setLayout statement, so add the following to UsefulFrame after the
setBounds statement:
this .setLayout( null );
7.
Save the UsefulFrame source code.
8.
In EmpFrame, delete the setLayout statement.
9.
Save the EmpFrame source code.
 
Search WWH ::




Custom Search