Skip to content

Commit 578dd64

Browse files
hansonrhansonr
authored andcommitted
AWT ScrollPane background lightgray for scrollbar area
1 parent 8ab861e commit 578dd64

File tree

6 files changed

+5
-4
lines changed

6 files changed

+5
-4
lines changed
-145 Bytes
Binary file not shown.
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
20190613090609
1+
20190613100634
-145 Bytes
Binary file not shown.
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
20190613090609
1+
20190613100634
-145 Bytes
Binary file not shown.

sources/net.sf.j2s.java.core/src/swingjs/a2s/ScrollPane.java

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ public void isAWTContainer() {}
4040

4141
public ScrollPane() {
4242
this(SCROLLBARS_AS_NEEDED);
43-
}
43+
}
4444

4545
public ScrollPane(int scrollbars) {
4646
super();
@@ -56,7 +56,8 @@ public ScrollPane(int scrollbars) {
5656
case SCROLLBARS_AS_NEEDED:
5757
break;
5858
}
59-
setBorder(new LineBorder(Color.black));
59+
setBackground(Color.LIGHT_GRAY); // fills in around the scrollbars
60+
setOpaque(true);
6061
}
6162

6263
@Override

0 commit comments

Comments
 (0)