|
23 | 23 |
|
24 | 24 | import javax.swing.AbstractAction; |
25 | 25 | import javax.swing.JButton; |
| 26 | +import javax.swing.JPanel; |
26 | 27 | import javax.swing.JScrollBar; |
| 28 | +import javax.swing.JScrollPane; |
27 | 29 | import javax.swing.KeyStroke; |
28 | 30 | import javax.swing.SwingUtilities; |
29 | 31 | import javax.swing.event.CaretEvent; |
@@ -384,6 +386,22 @@ protected JButton createIncreaseButton(int orientation) { |
384 | 386 | return button; |
385 | 387 | } |
386 | 388 | }); |
| 389 | + // Set the corners where scrollbars meet |
| 390 | + JPanel lowerRight = new JPanel(); |
| 391 | + lowerRight.setBackground(new Color(0x5a6ec4)); // even lighter blue |
| 392 | + spscrollPane.setCorner(JScrollPane.LOWER_RIGHT_CORNER, lowerRight); |
| 393 | + |
| 394 | + JPanel lowerLeft = new JPanel(); |
| 395 | + lowerLeft.setBackground(new Color(0x5a6ec4)); |
| 396 | + spscrollPane.setCorner(JScrollPane.LOWER_LEFT_CORNER, lowerLeft); |
| 397 | + |
| 398 | + JPanel upperRight = new JPanel(); |
| 399 | + upperRight.setBackground(new Color(0x5a6ec4)); |
| 400 | + spscrollPane.setCorner(JScrollPane.UPPER_RIGHT_CORNER, upperRight); |
| 401 | + |
| 402 | + JPanel upperLeft = new JPanel(); |
| 403 | + upperLeft.setBackground(new Color(0x5a6ec4)); |
| 404 | + spscrollPane.setCorner(JScrollPane.UPPER_LEFT_CORNER, upperLeft); |
387 | 405 | } |
388 | 406 | swingNode = new javafx.embed.swing.SwingNode(); |
389 | 407 |
|
|
0 commit comments