You can include Specview as a add-on module (plug-in) in your Java application, in the same way Star View ( http://starview.stsci.edu) and Aladin (http://aladin.u-strasbg.fr/aladin.gml)do.
Specview is distributed under an Open Source BSD-style license.
Please, visit the JavaDoc page for the Specview class at
The class documentation can be found under the spv package, and includes an example of use. Class SpecviewDemo in the same package can be used as an example as well.
You would also need to download Specview from here.
The download files contain the specview.jar file which you should include in your classpath. They also include supporting libraries for FITS file access, XML file access, Virtual Observatory and Web Services access, and the JavaHelp system, that you may or may not have to include in your classpath, if you aleady use any one of them.
If you are interested in Specview's inner workings, you can download the source code from the Source Forge CVS repository. See here how to do it.