public Slider(int width, Listener c, float initial, Point l){
        call = c;
        this.location = l;
        this.width = width;
        value = initial;
        if(CheckBox.uncheckedtex == null){
            try {
                CheckBox.uncheckedtex = Texture.fromStream(Button.class.getResourceAsStream("/nl/xupwup/WindowManager/resources/checkboxU.png"));
            } catch (IOException ex) {
                ex.printStackTrace();
            }
        }
        if(slider == null){
            try {
                slider = Texture.fromStream(Slider.class.getResourceAsStream("/nl/xupwup/WindowManager/resources/slider.png"));
            } catch (IOException ex) {
                ex.printStackTrace();
            }
        }
    }