Normand Briere
2019-09-02 171c62e16a2bfc111001777235a6783e2986ccdd
cToggleButton.java
....@@ -19,8 +19,10 @@
1919 this.image = icon.getImage();
2020 iconWidth = icon.getIconWidth();
2121
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));
2426 }
2527
2628 private java.awt.Image image;
....@@ -35,6 +37,7 @@
3537 //if (getWidth() > image.getWidth(null) + 8)
3638 {
3739 g.drawImage(image, this.getWidth()/2 - 12, this.getHeight()/2 - 12, this);
40
+ g.drawRect(2, 2, this.getWidth()-5, this.getHeight()-5);
3841 }
3942 }
4043 }