Package de.fuhagen.sttp.gui

Examples of de.fuhagen.sttp.gui.ZoomSliderListener


        zoomLabel1 = new JLabel("Slider 1");
        zoomLabel2 = new JLabel("Slider 2");

        zoomSliderButtons = new ZoomSlider(250, 70, true);
        zoomSliderButtons.addZoomListener(new ZoomSliderListener() {

            @Override
            public void updateView(double zoom) {
                zoomLabel1.setText("Slider 1: " + zoom);
            }

            @Override
            public void executeAction() {
                zoomLabel1.setText(zoomLabel1.getText() + " action");
            }
        });

        zoomSliderNoButtons = new ZoomSlider(200, 40, false);
        zoomSliderNoButtons.addZoomListener(new ZoomSliderListener() {

            @Override
            public void updateView(double zoom) {
                zoomLabel2.setText("Slider 2: " + zoom);
            }
View Full Code Here

TOP

Related Classes of de.fuhagen.sttp.gui.ZoomSliderListener

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.