@@ -57,11 +57,21 @@ public class MetalBorders {
57
57
static Object NO_BUTTON_ROLLOVER =
58
58
new StringUIClientPropertyKey ("NoButtonRollover" );
59
59
60
+ /**
61
+ * Constructs a {@code MetalBorders}.
62
+ */
63
+ public MetalBorders () {}
64
+
60
65
/**
61
66
* The class represents the 3D border.
62
67
*/
63
68
@ SuppressWarnings ("serial" ) // Superclass is not serializable across versions
64
69
public static class Flush3DBorder extends AbstractBorder implements UIResource {
70
+ /**
71
+ * Constructs a {@code Flush3DBorder}.
72
+ */
73
+ public Flush3DBorder () {}
74
+
65
75
public void paintBorder (Component c , Graphics g , int x , int y ,
66
76
int w , int h ) {
67
77
if (c .isEnabled ()) {
@@ -88,6 +98,11 @@ public static class ButtonBorder extends AbstractBorder implements UIResource {
88
98
*/
89
99
protected static Insets borderInsets = new Insets ( 3 , 3 , 3 , 3 );
90
100
101
+ /**
102
+ * Constructs a {@code ButtonBorder}.
103
+ */
104
+ public ButtonBorder () {}
105
+
91
106
public void paintBorder (Component c , Graphics g , int x , int y , int w , int h ) {
92
107
if (!(c instanceof AbstractButton )) {
93
108
return ;
@@ -205,6 +220,11 @@ public Insets getBorderInsets(Component c, Insets newInsets) {
205
220
public static class InternalFrameBorder extends AbstractBorder implements UIResource {
206
221
private static final int corner = 14 ;
207
222
223
+ /**
224
+ * Constructs a {@code InternalFrameBorder}.
225
+ */
226
+ public InternalFrameBorder () {}
227
+
208
228
public void paintBorder (Component c , Graphics g , int x , int y ,
209
229
int w , int h ) {
210
230
@@ -464,6 +484,11 @@ protected Color getActiveBackground() {
464
484
public static class PaletteBorder extends AbstractBorder implements UIResource {
465
485
int titleHeight = 0 ;
466
486
487
+ /**
488
+ * Constructs a {@code PaletteBorder}.
489
+ */
490
+ public PaletteBorder () {}
491
+
467
492
public void paintBorder ( Component c , Graphics g , int x , int y , int w , int h ) {
468
493
469
494
g .translate (x ,y );
@@ -490,6 +515,11 @@ public Insets getBorderInsets(Component c, Insets newInsets) {
490
515
public static class OptionDialogBorder extends AbstractBorder implements UIResource {
491
516
int titleHeight = 0 ;
492
517
518
+ /**
519
+ * Constructs a {@code OptionDialogBorder}.
520
+ */
521
+ public OptionDialogBorder () {}
522
+
493
523
public void paintBorder ( Component c , Graphics g , int x , int y , int w , int h ) {
494
524
495
525
g .translate (x ,y );
@@ -559,6 +589,11 @@ public static class MenuBarBorder extends AbstractBorder implements UIResource {
559
589
*/
560
590
protected static Insets borderInsets = new Insets ( 1 , 0 , 1 , 0 );
561
591
592
+ /**
593
+ * Constructs a {@code MenuBarBorder}.
594
+ */
595
+ public MenuBarBorder () {}
596
+
562
597
public void paintBorder ( Component c , Graphics g , int x , int y , int w , int h ) {
563
598
g .translate (x , y );
564
599
@@ -600,6 +635,11 @@ public static class MenuItemBorder extends AbstractBorder implements UIResource
600
635
*/
601
636
protected static Insets borderInsets = new Insets ( 2 , 2 , 2 , 2 );
602
637
638
+ /**
639
+ * Constructs a {@code MenuItemBorder}.
640
+ */
641
+ public MenuItemBorder () {}
642
+
603
643
public void paintBorder ( Component c , Graphics g , int x , int y , int w , int h ) {
604
644
if (!(c instanceof JMenuItem )) {
605
645
return ;
@@ -655,6 +695,11 @@ public static class PopupMenuBorder extends AbstractBorder implements UIResource
655
695
*/
656
696
protected static Insets borderInsets = new Insets ( 3 , 1 , 2 , 1 );
657
697
698
+ /**
699
+ * Constructs a {@code PopupMenuBorder}.
700
+ */
701
+ public PopupMenuBorder () {}
702
+
658
703
public void paintBorder ( Component c , Graphics g , int x , int y , int w , int h ) {
659
704
g .translate ( x , y );
660
705
@@ -682,6 +727,11 @@ public Insets getBorderInsets(Component c, Insets newInsets) {
682
727
@ SuppressWarnings ("serial" ) // Superclass is not serializable across versions
683
728
public static class RolloverButtonBorder extends ButtonBorder {
684
729
730
+ /**
731
+ * Constructs a {@code RolloverButtonBorder}.
732
+ */
733
+ public RolloverButtonBorder () {}
734
+
685
735
public void paintBorder ( Component c , Graphics g , int x , int y , int w , int h ) {
686
736
AbstractButton b = (AbstractButton ) c ;
687
737
ButtonModel model = b .getModel ();
@@ -744,6 +794,11 @@ public static class ToolBarBorder extends AbstractBorder implements UIResource,
744
794
MetalLookAndFeel .getControlDarkShadow (),
745
795
UIManager .getColor ("ToolBar.background" ));
746
796
797
+ /**
798
+ * Constructs a {@code ToolBarBorder}.
799
+ */
800
+ public ToolBarBorder () {}
801
+
747
802
public void paintBorder ( Component c , Graphics g , int x , int y , int w , int h )
748
803
{
749
804
if (!(c instanceof JToolBar )) {
@@ -876,6 +931,11 @@ public static Border getTextFieldBorder() {
876
931
@ SuppressWarnings ("serial" ) // Superclass is not serializable across versions
877
932
public static class TextFieldBorder extends Flush3DBorder {
878
933
934
+ /**
935
+ * Constructs a {@code TextFieldBorder}.
936
+ */
937
+ public TextFieldBorder () {}
938
+
879
939
public void paintBorder (Component c , Graphics g , int x , int y ,
880
940
int w , int h ) {
881
941
@@ -903,6 +963,11 @@ public void paintBorder(Component c, Graphics g, int x, int y,
903
963
*/
904
964
@ SuppressWarnings ("serial" ) // Superclass is not serializable across versions
905
965
public static class ScrollPaneBorder extends AbstractBorder implements UIResource {
966
+ /**
967
+ * Constructs a {@code ScrollPaneBorder}.
968
+ */
969
+ public ScrollPaneBorder () {}
970
+
906
971
public void paintBorder (Component c , Graphics g , int x , int y ,
907
972
int w , int h ) {
908
973
@@ -966,6 +1031,11 @@ public static Border getToggleButtonBorder() {
966
1031
*/
967
1032
@ SuppressWarnings ("serial" ) // Superclass is not serializable across versions
968
1033
public static class ToggleButtonBorder extends ButtonBorder {
1034
+ /**
1035
+ * Constructs a {@code ToggleButtonBorder}.
1036
+ */
1037
+ public ToggleButtonBorder () {}
1038
+
969
1039
public void paintBorder (Component c , Graphics g , int x , int y , int w , int h ) {
970
1040
AbstractButton button = (AbstractButton )c ;
971
1041
ButtonModel model = button .getModel ();
@@ -1000,6 +1070,11 @@ public void paintBorder(Component c, Graphics g, int x, int y, int w, int h) {
1000
1070
@ SuppressWarnings ("serial" ) // Superclass is not serializable across versions
1001
1071
public static class TableHeaderBorder extends javax .swing .border .AbstractBorder {
1002
1072
1073
+ /**
1074
+ * Constructs a {@code TableHeaderBorder}.
1075
+ */
1076
+ public TableHeaderBorder () {}
1077
+
1003
1078
/**
1004
1079
* The border insets.
1005
1080
*/
0 commit comments