i guess you're very new to java, so here's some starters help ^^
create a content Panel and set some layout to the panel; add the sliders and a drawing-panel to your content panel;
you're doing it right, adding an change listener to the slider, but they should redraw the drawing-panel.
i'll add this snippets to make it easier for you ^_^
private JPanel drawPanel; //don't forget to create a proper one! override paint in that panel!
private int a,b,c;
public QuadraticPanel(){ //constructor
setLayout(new BoderLayout();
JSlider aSidler = new JSlider();
slider.addChangeListener(new ChangeListener(){
@Override
public void stateChanged(ChangeEvent arg0) {
a = arg0.getValue(); //setting a value
//it might even be better to calculate the value
//BEFORE you redraw
//recalcEquotiation()
drawPanel.repaint(); //and redraw the paint-panel
}
});
add(aSlider, Borderlayout.WEST); //add more sliders with better layouts or subcomponents
add(drawPanel, BorderLayout.CENTER);
}
don't forget - these are just snippets, you'll have to do some work on your own...