@@ -0,0 +1,1211 @@
+package markharder.physicsdemos.demo.interfacing;%0A%0Aimport java.awt.Color;%0Aimport java.awt.Graphics;%0A%0Aimport markharder.physicsdemos.demo.input.Mouse;%0A%0A/**%0A * A simple slider to get input%0A *%0A * @author Mark Harder%0A * @version 1.0%0A */%0Apublic class Slider %7B%0A    private boolean active;%0A    private double x, y, height, min, max, pos;%0A%0A    public Slider(double x, double y, double height double min, double max, double pos) %7B%0A        active = false;%0A        this.x = x;%0A        this.y = y;%0A        this.height = height;%0A        this.min = min;%0A        this.max = max;%0A        this.pos = pos;%0A    %7D%0A%0A    public double getValue() %7B%0A        return pos * (max - min) + min%0A    %7D%0A%0A    public double click() %7B%0A        active = true;%0A    %7D%0A%0A    public void release(int y) %7B%0A        active = false;%0A    %7D%0A%0A    public void draw(Graphics g) %7B%0A        g.setColor(Color.WHITE);%0A        g.drawLine(x, y, x, y + height);%0A        g.fillRect(x - 5, (y + height - height * pos) - 5, 10, 10);%0A    %7D%0A%0A    public void tick() %7B%0A        if (Mouse.location.y %3C y) %7B%0A            pos = y;%0A        %7D else if (Mouse.location.y %3E y + height) %7B%0A            pos = y + height;%0A        %7D else %7B%0A            y = Mouse.location.y;%0A        %7D%0A    %7D%0A%7D%0A

add a slider component