We can now find images, but we still can't tell the system where to look. Before turning our attention to handling preferences with the NetBeans platform, though, we have one more TopComponent to look at--PhotoViewerTopComponent.
If you think back to our discussion of the areas provided by the NetBeans window system, when we view an image, we want the image to be loaded in the Editor area. To create a TopComponent for that, we instruct NetBeans to create a new Window by right-clicking on the desired package, and selecting New | Window:
In the next pane, we specify a class name prefix for our new TopComponent--PhotoViewer ...