Questions tagged [scrollpane]

A group that scrolls a child widget using scrollbars and/or mouse or touch dragging.

The widget is sized to its preferred size. If the widget's preferred width or height is less than the size of this scroll pane, it is set to the size of this scroll pane. Scrollbars appear when the widget is larger than the scroll pane.

The scroll pane's preferred size is that of the child widget. At this size, the child widget will not need to scroll, so the scroll pane is typically sized by ignoring the preferred size in one or both directions.

377 questions
-1
votes
1 answer

Is there a way to disable the click in JavaFX ScrollPane?

I want my ScrollPane to be not clickable but the components inside of it must be active. I tried this but I can't click inside the ScrollPane. buttonScrollPane.addEventFilter(MouseEvent.MOUSE_PRESSED,…
Bruce
  • 7
  • 3
-1
votes
1 answer

Java swing scrollpane doesn't show the scroll bar

I was working on a java swing gui project for my course. When I was doing that, I found that I had too much information in a panel and it was not able to show everything. As a result, I wanted to add a Jscrollpane and I did some research about how…
-1
votes
2 answers

JavaFX ScrollPane - Detect when scrollbar is visible?

I have a ScrollPane as below: ScrollPane scroller = new ScrollPane(); scroller.getStyleClass().add("scroller"); scroller.setPrefWidth(width); scroller.setFocusTraversable(Boolean.FALSE); scroller.setPannable(Boolean.TRUE); …
arun
  • 308
  • 2
  • 11
-1
votes
1 answer

JavaFX image fit to the width of ScrollPane

I'm trying to load an image inside a ScrollPane and make the image always fit to the width of the ScrollPane, even on window resize, so that you only have to scroll vertically. I'm using Scene Builder 8.5.0 and the Fit To Width property of the…
V. Pantis
  • 105
  • 1
  • 7
-1
votes
2 answers

HTML/CSS Scrolling Height Issue

Consider this: