FileDocCategorySizeDatePackage
RoundedLineBorder.javaAPI DocExample860Thu Oct 24 20:14:24 BST 2002None

RoundedLineBorder

public class RoundedLineBorder extends JPanel

Fields Summary
Constructors Summary
public RoundedLineBorder()

        super(true);
	setLayout(new BorderLayout());

        JLabel label = new JLabel("Rounded Corners");

        label.setHorizontalAlignment(JLabel.CENTER);

	LineBorder line = new LineBorder(Color.blue, 2, true);

        label.setBorder(line);

        add(label, BorderLayout.CENTER);
    
Methods Summary
public static voidmain(java.lang.String[] s)

         JFrame frame = new JFrame("Rounded Line Border");
         frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
         frame.setSize(500, 200);
         frame.setContentPane(new RoundedLineBorder());
         frame.setVisible(true);