Works around an OpenJDK bug on Windows that causes the scrollbar thumb color and background color to be almost identical.
(Scrollbar sb)
| 614 | * color to be almost identical. |
| 615 | */ |
| 616 | public static final void fixScrollbar(Scrollbar sb) { |
| 617 | if (IJ.isWindows()) |
| 618 | sb.setBackground(scrollbarBackground); |
| 619 | } |
| 620 | |
| 621 | /** Returns a new NonBlockingGenericDialog with the given title, |
| 622 | * except when Java is running in headless mode, in which case |
no test coverage detected