Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- private class AnotherBorderTest extends JFrame {
- public AnotherBorderTest() {
- setTitle("Border Test");
- setSize(450, 450);
- JPanel content = (JPanel) getContentPane();
- content.setLayout(new GridLayout(6, 2, 3, 3));
- p = new JPanel();
- p.setBorder(new MatteBorder(new ImageIcon("BALL.GIF")));
- p.add(new JLabel("MatteBorder"));
- content.add(p);
- setVisible(true);
- }
- public void main(String args[]) {
- new AnotherBorderTest();
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement