Normand Briere
2019-08-06 b3ae4e889872ca0b9ca76f1d17b2f0b961226729
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(0, 0, this.getWidth()-1, this.getHeight()-1);
3841 }
3942 }
4043 }