Thewidthandheightaresubsequentlyusedtoconstructa Dimension objectthat's
passed to setPreferredSize() . This preferred size will be taken into account
by sp.doLayout(); , which is executed following the call to ImageCanvas 's
Figure 7-10 presents ImageViewer 's GUI with a loaded image.
Figure 7-10. Is it true that a rose by any other name would smell as sweet?
Note AWT also supports image processing. For example, you can grayscale a
I don't discuss AWT-based image processing.
GUI-based applications often need to transfer data between or within themselves. For
example, atexteditor'susermaywanttocutselected texttothesystemclipboard and
subsequently paste the clipboard's text to another location within the document being