slider = new JSlider(); getContentPane().setLayout(new BorderLayout()); getContentPane().add("North", slider);
new SwingCalcThread().start();