/** 
 * This script is being run when a skin is selected
 * The script produces a simple custom user interface.
 * Please look at the "ShowOff" skin for a full blown example
 * Author David Ekholm
 */
 
import se.datadosen.component.*;

// Controls that are to be imported into JAlbum as variables
ControlPanel ui = new ControlPanel() {

	JTextField copyright = new JTextField("");
	JCheckBox showLabels = new JCheckBox("Show labels");
	JCheckBox showDates = new JCheckBox("Show dates", true);
	JCheckBox showImageNum = new JCheckBox("Show image numbers", true);
};

// Layout controls easily similar to how text is added in a word processor
ui.add("p", new JLabel("This is a small example of a custom user interface for a skin."));
ui.add("p", new JLabel("Copyright"));
ui.add("tab hfill", ui.copyright);
ui.add("p", ui.showLabels);
ui.add("br", ui.showDates);
ui.add("br", ui.showImageNum);

// Finally install components into JAlbum
window.setSkinUI(ui);
