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
4
votes
2 answers

JavaFX ScrollPane PickOnBounds (partial mouse transparency)

I am currently working on a JavaFX based GUI Program for video editing. Here I have run into a problem with ScrollPanes. I cannot figure out how to make a ScrollPane (truly) pickOnBounds=„false“ . Meaning that I can actually click through the…
philipp404
  • 41
  • 3
4
votes
2 answers

JavaFX, how to prevent Label text resize during ScrollPane focus?

How do I stop the ScrollPane focus from resizing my Labels' text? I'm making a copy of this car loan calculator in JavaFX. Almost everything works as intended Until the ScrollPane gets focus, the title and text on right side gets resized A brief…
DukeOfEarl
  • 43
  • 4
4
votes
1 answer

Libgdx Scrollpane doesnt scroll enough after widgets in the table (that owns a scroll pane) was moved

I have a question. Libgdx Scrollpane doesnt scroll enough after widgets in the table (that owns a scroll pane) was moved. Here is the sample from my code. Table scrollPaneTable = new Table(); Scrollpane itemsScrollPane = new…
Gag Baghdasaryan
  • 716
  • 1
  • 11
  • 22
4
votes
1 answer

JavaFX scroll started and ended

I have a very costly action to do on a mouse scroll on a pane. I currently use pane.setOnScroll({myMethod()}). The problem is that if you scroll a lot it computes everything many times. So what I want is to do my actions only when the scroll is…
4
votes
2 answers

LibGDX: How to make the ScrollPane scroll down automatically?

What I've tried: scrollPane.setScrollPercentY(100); and scrollPane.setScrollY(1); or scrollPane.setScrollY(0); But it only scrolls to the top, not to the bottom.
Zezi Reeds
  • 1,286
  • 1
  • 16
  • 29
4
votes
3 answers

JavaFX ScrollPane not scrolling with VBox

I have a scrollpane on my screen and a vbox inside it. I add numerous checkboxes in this vbox (and I see it expanding) but the scrollpane doesn't seem to know that it should start showing a scrollbar when the content exceeds the height of that pane.…
Student2020
  • 65
  • 1
  • 1
  • 9
4
votes
1 answer

JavaFX ScrollPane - Check which components are displayed

I wonder whether there is a ScrollPane property in JavaFX 8 that can be used to listen on the components that are currently displayed at a given time. For example, ScrollPane has a VBox which has 8 buttons. Only 4 buttons can be seen in scrollpane.…
javasuns
  • 1,061
  • 2
  • 11
  • 22
4
votes
2 answers

JavaFX 2: Making a ScrollPane automatically scroll to the edge after adding content

Using JavaFX 2, I have a basic example of a ScrollPane that contains an HBox of Labels. I want to be able to add a Label to the HBox, and simultaneously scroll to the right edge of the ScrollPane so that the newly added Label is visible. My…
Luke
  • 93
  • 1
  • 2
  • 7
3
votes
3 answers

Java JTextPane + JScrollPane: de/activate automatic scrolling

I'm currently writing a simple chat in Java and currently I'm stuck on this problem: I want my output JTextPane to behave like you would expect it to from a good chat, ie by default the text scrolls automatically when new text arrives (using…
Szernex
  • 165
  • 2
  • 12
3
votes
1 answer

How to get Scrollbars as needed with a TabPane as Content?

I have a BorderPane inside a Tabpane inside a ScrollPane. The ScrollPane.ScrollBarPolicy.AS_NEEDED does work if i remove the TabPane and put the BorderPane as Content of the ScrollPane. How do i get this to work with the TabPane? Somehow the…
stefan
  • 73
  • 3
3
votes
1 answer

Scrollpane line chart with fixed view y axis JavaFX

I'm trying to make a scrollable chart where the Y-axis stays in view regardless of the cursor position in the scrollbar (by default since the Y-axis informations is at the end of the view, you would only see it after you scroll enough to see the…
Asura
  • 859
  • 5
  • 15
3
votes
1 answer

Display images dynamically in a ScrollPane

I want to add multiple images in a ScrollPane when clicking a button. Now when I click the button a new rectangle is created and fitted with a new image. The problem is the scrollbar is not displaying when a new image is added. Here is the…
Alberto Carmona
  • 467
  • 1
  • 9
  • 23
3
votes
0 answers

JavaFX ScrollPane memory leak software pipeline

I have a simple code and run with -Dprism.order=sw using jdk8_45: @Override public void start(Stage primaryStage) throws Exception { StackPane root = new StackPane(); root.getChildren().add(new ScrollPane()); Scene scene = new…
3
votes
1 answer

JavaFX ScrollPane doesn't fill it's parent pane

I'm trying to learn JavaFX. To do so I've been attempting to make a text editor that includes multiple line text box support, as well as the possibility of having syntax highlighting down the road. Currently, the biggest problem I've been facing is…
Ben Rasmussen
  • 297
  • 3
  • 5
3
votes
1 answer

Libgdx - scrollbar in scrollpane disappears when widget loses focus

I've created a Window with ScrollPane and ScrollBar using libgdx's Scene2d API. It "nearly" works - what I mean is that I can resize window and ScrollBars are showing when needed, but ScrollBars disappear as soon as window (or ScrollPane) loses…
Jędrzej Dudkiewicz
  • 1,053
  • 8
  • 21
1 2
3
25 26