Java Code Examples for javafx.scene.control.ScrollBar#setMinSize()
The following examples show how to use
javafx.scene.control.ScrollBar#setMinSize() .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: ScrollBarSample.java From marathonv5 with Apache License 2.0 | 5 votes |
private ScrollBar horizontalScrollBar(double minw, double minh, double prefw, double prefh, double maxw, double maxh) { final ScrollBar scrollBar = new ScrollBar(); scrollBar.setMinSize(minw, minh); scrollBar.setPrefSize(prefw, prefh); scrollBar.setMaxSize(maxw, maxh); scrollBar.setVisibleAmount(50); scrollBar.setMax(xBarWidth-(2*circleRadius)); return scrollBar; }
Example 2
Source File: ScrollBarSample.java From marathonv5 with Apache License 2.0 | 5 votes |
private ScrollBar verticalScrollBar(double minw, double minh, double prefw, double prefh, double maxw, double maxh) { final ScrollBar scrollBar = new ScrollBar(); scrollBar.setMinSize(minw, minh); scrollBar.setPrefSize(prefw, prefh); scrollBar.setMaxSize(maxw, maxh); scrollBar.setVisibleAmount(50); scrollBar.setMax(yBarHeight-(2*circleRadius)); return scrollBar; }
Example 3
Source File: ScrollBarSample.java From marathonv5 with Apache License 2.0 | 5 votes |
private ScrollBar horizontalScrollBar(double minw, double minh, double prefw, double prefh, double maxw, double maxh) { final ScrollBar scrollBar = new ScrollBar(); scrollBar.setMinSize(minw, minh); scrollBar.setPrefSize(prefw, prefh); scrollBar.setMaxSize(maxw, maxh); scrollBar.setVisibleAmount(50); scrollBar.setMax(xBarWidth-(2*circleRadius)); return scrollBar; }
Example 4
Source File: ScrollBarSample.java From marathonv5 with Apache License 2.0 | 5 votes |
private ScrollBar verticalScrollBar(double minw, double minh, double prefw, double prefh, double maxw, double maxh) { final ScrollBar scrollBar = new ScrollBar(); scrollBar.setMinSize(minw, minh); scrollBar.setPrefSize(prefw, prefh); scrollBar.setMaxSize(maxw, maxh); scrollBar.setVisibleAmount(50); scrollBar.setMax(yBarHeight-(2*circleRadius)); return scrollBar; }