FileDocCategorySizeDatePackage
CurvedExample.javaAPI DocExample940Thu Oct 24 20:14:24 BST 2002None

CurvedExample

public class CurvedExample extends JPanel

Fields Summary
Constructors Summary
public CurvedExample()

        super(true);

        JSlider mySlider = new JSlider();
        mySlider.setMajorTickSpacing(20);
        mySlider.setMinorTickSpacing(10);
        mySlider.setPaintTicks(true);
        mySlider.setPaintLabels(true);

        CurvedBorder border = new CurvedBorder(10, Color.darkGray);
        mySlider.setBorder(border);

        add(mySlider);
    
Methods Summary
public static voidmain(java.lang.String[] s)

         JFrame frame = new JFrame("Custom Curved Border");
         frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
         frame.setSize(300,150);
         frame.setContentPane(new CurvedExample());
         frame.setVisible(true);