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
http://specview.stsci.edu/doc/index.html
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
These two archive files contain just the supporting libraries:
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.