Next Previous Up Contents
Next: SQL Database Interaction
Up: GUI Support
Previous: Drag and Drop

4.2 Table Chooser Components

Some graphical components exist to make it easier to load or save tables. They are effectively table-friendly alternatives to using a JFileChooser.

StarTableChooser
This is for loading tables, and is very much like a JFileChooser, but it handles turning selected items into a StarTable for you.
StarTableNodeChooser
This loads tables as well, but it presents a more sophisticated interface to the user. It allows hierarchical browsing of nodes beyond the directory/file level - for instance you can see the hierarchical structure of RESOURCE and TABLE elements in a VOTable document, or the list of HDUs in a FITS file, and pick the TABLE element that you are interested in. It uses the same classes and appearance as the Treeview application to achieve this.
StarTableSaver
This is used for saving tables. As well as allowing the user to browse the filesystem and select a filename as usual, it also allows selection of the output file format from the list of those which the StarTableOutput knows about.


Next Previous Up Contents
Next: SQL Database Interaction
Up: GUI Support
Previous: Drag and Drop

STIL - Starlink Tables Infrastructure Library
Starlink User Note 252
STIL web page: http://www.starlink.ac.uk/stil/
Author email: m.b.taylor@bristol.ac.uk
Starlink: http://www.starlink.ac.uk/