*
* @param title
* Title displayed in border of JDesktopPane
*/
public ViewingPanel(String title) {
TitledBorder tb;
setLayout(new BorderLayout());
desktop = new JDesktopPane();
desktop.setLayout(new TileLayout());
desktop.setBorder(tb = new TitledBorder(
new CompoundBorder(
new EtchedBorder(),
new EmptyBorder(4, 4, 4, 4)),
title));
tb.setTitleColor(Color.black);
desktop.setOpaque(false);
desktop.setBackground(UIManager.getColor("control"));
add(desktop, BorderLayout.CENTER);
hash = new Hashtable();
}