|
|
|
Skeleton Code
In this magercise, you will create a
Tasks:
JTable needs to implement the
TableModel interface. The AbstractTableModel class
implements this and only requires you to implement two of the methods. So,
have the ADataModel class extend AbstractTableModel .
The four methods
The CustomDisplayer needs to setup the
Next, you need to create a
To have the last column display a custom cell renderer, you need to get the
column and change its default cell renderer. Use the
Create a
To install the custom cell renderer, have the
ColorizedCell class be a table cell renderer.
Also, complete the Save everything and compile the program. Then run it to see the results.
Where help exists, the task numbers above are linked to the step-by-step help page. SolutionThe following Java source files represent a solution to this Magercise:Short CourseAbout This Short CourseCopyright © 1998-1999 MageLang Institute. All Rights Reserved. |
|
|||
|
|
Questions?
29-Mar-99 Copyright © 1996-1999 Sun Microsystems Inc. All Rights Reserved. Legal Terms. Privacy Policy. |
|