public void startup(Display display, Dictionary<String, String> properties)
throws Exception {
WTKXSerializer wtkxSerializer = new WTKXSerializer();
window = new Window((Component)wtkxSerializer.readObject(getClass().getResource("slider_test.wtkx")));
slider = (Slider)wtkxSerializer.getObjectByName("slider");
slider.getSliderValueListeners().add(new SliderValueListener() {
public void valueChanged(Slider slider, int previousValue) {
valueLabel.setText(Integer.toString(slider.getValue()));
}
});