FileDocCategorySizeDatePackage
CurvedExample.javaAPI DocExample941Mon Nov 09 12:45:48 GMT 1998None

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.addWindowListener(new BasicWindowMonitor());
         frame.setSize(300,150);
         frame.setContentPane(new CurvedExample());
         frame.setVisible(true);