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
vote
1 answer

ScrollPane doesn't work

I have a problem with ScrollPane and TextArea I put a scroll there and when I try to type in the TextArea it doesn't scroll it gets wider. Here you got the code for it: package interface_Components; import java.awt.BorderLayout; import…
Paul
  • 11
  • 1
1
vote
1 answer

Javafx : ScrollPane in SplitPane cannot scroll

I have many panes in my .fxml file ( here is the earlier version of my fxml: Javafx : SplitPane resize children) Now I want to fix the first two elements in the split pane in the top of my view, so I put them out of the ScrollPane but now the…
Sunflame
  • 2,993
  • 4
  • 24
  • 48
1
vote
1 answer

Horizontal Scrollpane level menu in libgdx?

In my top down game I want to change the position of my scrollpane from vertical to horizontal srcollpane. I want to change the direction of scrolling.This image explain my problem screen output Screen menu Here Is my Code below private Stage…
jaZzZ
  • 127
  • 12
1
vote
1 answer

JavaFX ScrollPane and Scaling of the Content

I would like to show a photo as an ImageView in a ScrollPane with an ZoomIn and ZoomOut Function. But if I reduce by means of scale the imageview, an undesirable empty edge is created in the ScrollPane. How can you make sure that the ScrollPane is…
user1878143
  • 91
  • 3
  • 11
1
vote
0 answers

JavaFX zoom issue using setOnZoom

I have a ScrollPane that contains a StackPane, and I added an event handler to the StackPane like so: private void setupZoom() { scaleX = pane.getScaleX(); // I only store this to be able to revert the changes scaleY = pane.getScaleY(); …
Thomas
  • 395
  • 8
  • 21
1
vote
1 answer

JavaFX moving Objects within ScrollPane by drag and drop

I have a very large StackPane(3000x2000) inside of a ScrollPane. The idea is to use it like a large "drawing board", in which users can create nodes and drag them around, for creating Mindmaps and such. The problem is drag and drop: It works fine if…
Thomas
  • 395
  • 8
  • 21
1
vote
1 answer

Drag from a ScrollPane to a target outside of the ScrollPane?

I haven't been able to find a non-hack way to use Drag and Drop with the AS3 ScrollPane component. Here's what I'm doing: I create a container mc, which I then add a bunch of children to. The children are what I want to drag. However, dragging is…
evanmcd
  • 1,967
  • 3
  • 32
  • 52
1
vote
2 answers

Scroll ScrollPane down or up when dragging/dropping an item into it.

I would like to have a ScrollPane scroll up or down when a user drags something to its edge. The ScrollPane would have a VBox inside it and would be inside a VBox too. I assume I need to put something in setOnDragExited. But what exactly? Here a…
user1781523
1
vote
0 answers

Flash animate 2017 scroll pane bug

Whenever i open my .Fla that has 3 scroll panes within it they appear to have been removed from library my question is does anyone know why this is happening and how to fix the issue? Thanks in advance. First i add the scroll pane components to the…
Dylan Anlezark
  • 1,256
  • 2
  • 12
  • 27
1
vote
3 answers

How to make JavaFX ScrollPane autoscroll slowly to the bottom?

I have a Scrollpane with large-enough content to active the vertical scroll bar. fx:id of the Scrollpane is myScrollPane. I also have a button called Scroll To The Bottom. I have set the Action Event of the Scroll To The Bottom button as below in…
Lakshitha Kanchana
  • 844
  • 2
  • 12
  • 32
1
vote
2 answers

JavaFX ScrollPane setVvalue() not working as intended

In my application I have a ScrollPane with a VBox that potentially contains anywhere from 0 to 1000 panes at a set height of 90 each. Each pane has related items that could loaded from a button inside that clears the VBox and adds its children along…
Matthew Wright
  • 1,485
  • 1
  • 14
  • 38
1
vote
0 answers

JavaFX: The GridPane and column constraints

I have a ScrollPane control with left and right parts inside. Left part contains a GridPane control. I would like to make the GridPane across the entire width of the parent VBox control. For this purpose, I used a columnConstraints. Now, the…
David
  • 527
  • 1
  • 8
  • 21
1
vote
1 answer

Custom Panning Handler Javafx

Hello due to issues with the built in panning tool for scrollpane (runs slowly and transitions in chunks rather than fluidly) I am trying to create a custom panning handler. Below is my attempt but the if statement does not work correctly. …
1
vote
4 answers

Is it possible to scroll ScrollPane programmatically to given position?

Is it possible to scroll ScrollPane programmatically to given position? ScrollPane#vvalue and ScrollPane#hvalue are useless, because they vary from 0 to 1. Are there any absolute properties or I should code them myself?
Dims
  • 47,675
  • 117
  • 331
  • 600
1
vote
1 answer

Smooth Panning in ScrollPane Javafx

I have a scrollPane with pannable enabled. When panning with a large image the transformation "lags" behind the mouse making for a "blocky" transformation. Is there a way to fix this? There is not much code that is really relevant here to post if…