Java Reference
In-Depth Information
JFrame
PaintBox
+ main (args : String[]) : void
PaintFrame
JMenuBar
JToolBar
DrawingPanel
ButtonBar
1
5
JRadioButton
JButton
FIGURE J.3 A class diagram for the interface refinement of the PaintBox
project
We can create listener objects and methods as appropriate but not concern our-
selves with their inner workings at this time. That is, our focus in this refinement
is to present the user interface, not to create any of the functionality behind the
interface. During the development of this refinement, we modify the details of the
user interface until it appears just the way we'd like it.
At the end of the first refinement, we are left with a completely implemented
program that presents only the user interface. The buttons do nothing when
pushed, and the menu items do nothing when selected. We have no way of creat-
ing a drawing yet.
What we do have, however, is a complete entity that has been debugged and
tested to the level of this refinement. We may show it to the client at this point
and get further input. Any changes that result from these discussions can be incor-
porated into future refinements. Figure J.4 shows the PaintBox program after the
first refinement has been completed.
 
Search WWH ::




Custom Search