.. | .. |
---|
19 | 19 | this.image = icon.getImage(); |
---|
20 | 20 | iconWidth = icon.getIconWidth(); |
---|
21 | 21 | |
---|
22 | | - //setBorder(new javax.swing.border.EmptyBorder(8, 0, 8, 24)); // top, left, bottom, right |
---|
23 | | - setBorder(new javax.swing.border.EtchedBorder(EtchedBorder.RAISED, Color.BLACK, Color.BLACK)); |
---|
| 22 | + setMargin(new java.awt.Insets(11, 11, 11, 11)); |
---|
| 23 | + //setBorder(javax.swing.BorderFactory.createLineBorder(Color.BLACK)); |
---|
| 24 | + // setBorder(new javax.swing.border.EmptyBorder(8, 0, 8, 24)); // top, left, bottom, right |
---|
| 25 | + // setBorder(new javax.swing.border.EtchedBorder(EtchedBorder.RAISED, Color.BLACK, Color.BLACK)); |
---|
24 | 26 | } |
---|
25 | 27 | |
---|
26 | 28 | private java.awt.Image image; |
---|
.. | .. |
---|
35 | 37 | //if (getWidth() > image.getWidth(null) + 8) |
---|
36 | 38 | { |
---|
37 | 39 | g.drawImage(image, this.getWidth()/2 - 12, this.getHeight()/2 - 12, this); |
---|
| 40 | + g.drawRect(2, 2, this.getWidth()-5, this.getHeight()-5); |
---|
38 | 41 | } |
---|
39 | 42 | } |
---|
40 | 43 | } |
---|