@Override
public void startup(Display display, Map<String, String> properties)
throws Exception {
BXMLSerializer bxmlSerializer = new BXMLSerializer();
window = new Window((Component)bxmlSerializer.readObject(getClass().getResource("slider_test.bxml")));
slider1 = (Slider)bxmlSerializer.getNamespace().get("slider1");
slider1.getSliderValueListeners().add(new SliderValueListener() {
@Override
public void valueChanged(Slider slider, int previousValue) {
valueLabel1.setText(Integer.toString(slider.getValue()));