MCPcopy Create free account
hub / github.com/AstroImageJ/astroimagej / fixScrollbar

Method fixScrollbar

ij/src/main/java/ij/gui/GUI.java:616–619  ·  view source on GitHub ↗

Works around an OpenJDK bug on Windows that causes the scrollbar thumb color and background color to be almost identical.

(Scrollbar sb)

Source from the content-addressed store, hash-verified

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

Callers 9

LineWidthAdjusterMethod · 0.95
ColorThresholderMethod · 0.95
runMethod · 0.95
ThresholdAdjusterMethod · 0.95
addSliderMethod · 0.95
ScrollbarWithLabelMethod · 0.95
addSliderMethod · 0.95
TextPanelMethod · 0.95
createNumericSliderMethod · 0.95

Calls 2

isWindowsMethod · 0.95
setBackgroundMethod · 0.80

Tested by

no test coverage detected