Adjustment Listener Code

Report a typo

Enter the line required for MyAdjustmentListener to be a proper AdjustmentListener

public class Main {
    public static void main(String[] args) {
        JLabel label = new JLabel();
        JFrame frame = new JFrame("Scroll Bars");

        class MyAdjustmentListener implements _______________ {
            public void adjustmentValueChanged(AdjustmentEvent e) {
                label.setText("Slider's position is " + e.getValue());
                frame.repaint();
            }
        }
    }
}
Enter a short text
___

Create a free account to access the full topic