I am writing a control panel with Sliders but I think my code is messy and cumbersome, what can I do to improve it?public class Input_Window extends JFrame {    JSlider myslideA,myslideB,myslideC,myslideD;    Input_Window(){        System.out.println(* Control Window);        setBackground(Color.GRAY);          setResizable(false);        setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);        setTitle(Controls);        setSize(200,400);        setLocation(1200,250);        setLayout(new FlowLayout());        myslideA=slider(0,10,3,1,true,true);        add(myslideA);        myslideB=slider(0,10,3,1,true,true);        add(myslideB);        myslideC=slider(0,10,3,1,true,true);        add(myslideC);        myslideD=slider(0,10,3,1,true,true);        add(myslideD);        setVisible(true);          setFocusable(true);         requestFocus();    }    public final JSlider slider(int min, int max, int def, int maj, boolean ticks, boolean labels){        JSlider myslide=new JSlider(JSlider.HORIZONTAL,min,max,def);        myslide.setMajorTickSpacing(maj);        myslide.setPaintTicks(ticks);        myslide.setPaintLabels(labels);        return (myslide);    }}
JFrame with four sliders
java;swing;layout