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
0 answers

How to crop properly inside a scroll pane?

I keep receiving either wierd offset of my cropped image or java.awt.image.RasterFormatException: (y + height) is outside of Raster exception. Any idea what I'm doing wrong? I'm using scalling parameters: parameterX and parameterY, since I scale…
SDamnation
  • 41
  • 3
1
vote
2 answers

How to make a specific row visible of a textArea in Java

My JTextArea contains thousands of lines but not all of them are visible at a time. I want to programmatically scroll to a specific row of the textArea so that the line is visible. I found that scrollPane has a method scrollRectToVisible but I am…
Muhammad Asaduzzaman
  • 1,201
  • 3
  • 19
  • 33
1
vote
1 answer

libGDX : Scrollpane is child of Scrollpane and switch between them in scrolling

In many android applications I faced the "Sticky Header For List" title and we love it. https://github.com/search?q=header+sticky+android, Now, I am trying to do it in libGDX framework using Scrollpane and another scene2dui actors. I achieve that…
iibrahimbakr
  • 1,116
  • 1
  • 13
  • 32
1
vote
1 answer

How can I center a ScrollPane that wraps a fixed-sized Canvas in a BorderPane?

In a JavaFX application I need to center a fixed-sized Canvas wrapped by a StackPane, then a ScrollPane, within a BorderPane. The problem is that when I include the ScrollPane, the component tree is no longer centered in the middle of the center…
SDJ
  • 4,083
  • 1
  • 17
  • 35
1
vote
1 answer

How to create a scrollpane that would scroll in a vertical direction forever?

I'm not sure if this is possible and I couldn't find anything on it, but could I make a scrollpane scroll forever? I am constantly adding new buttons and labels into the window once a button is pressed, and eventually is gets to the bottom. I may…
user10238840
1
vote
1 answer

Misalignment of two synced ScrollPanes

I try to align the vertical scroll position of two javafx.scene.control.ScrollPanes via sp1.vvalueProperty().bindBidirectional(sp2.vvalueProperty()); The problem is that one of these ScrollPanes may have a horizontal scroll bar. So the more I…
Sebastian
  • 5,721
  • 3
  • 43
  • 69
1
vote
2 answers

JavaFX ScrollPane Disable scroll by arrow keys

Could you please advise in situation: I have ScrollPane and GridPane in it. In GridPane i have many buttons. When i focused one button by mouse and try to move focus by arrow keys, focus still stay on the same button and i only see that ScrollPane…
Romeo
  • 31
  • 2
1
vote
1 answer

How to limit the amount of scrolling ScrollPane does

When scrolling on my ScrollPane, it leaves a lot of empty space when I reach the bottom, I want this to be limited so it stops allowing scrolling when the bottom item of the ScrollPane becomes visible. Image 1 - Top of the ScrollPane Image 2 -…
User123456
  • 69
  • 8
1
vote
0 answers

Scroll Pane Zoom In Java

I have a scroll pane in java with content as an anchorpane , the anchorpane has children which are an imageview binded with the anchorpanes height and width so it can fit the anchorpane exactly and also some circles and lines representing a graph.…
1
vote
1 answer

JavaFX tableView - overriding the behaviour of arrow keys

I'm trying to override the behaviour of arrow keys on a JavaFX tableView. I've managed to do it, but now I'm in trouble with the ScrollPane. In short, I have a TableView with 3 columns (0,1,2) and pressing the right-arrow key from 2 I want the…
dakat
  • 51
  • 6
1
vote
1 answer

Javafx, scrollpane with line-by-line scrolling not page-wise

I have a Scrollable-VBox with a lot of TextFields in it. I can TAB-Browse from one TextField to the next. When I reach the last currently visible and press TAB again, the scrollpane switches to the next "page" and the cursor is in the new uppermost…
JustMe
  • 366
  • 1
  • 4
  • 14
1
vote
1 answer

JavaFX How to make a GridPane fit to ScrollPane parent?

I need page with a grid where entering some data so, using SceneBuilder , I put a GridPane inside an AnchorPane. The gridpane I need has huge height so I wrap it inside a ScrollPane and make the ScrollPane fitting to AnchorPane. But now when I…
Adl
  • 127
  • 3
  • 13
1
vote
1 answer

How to set the scrollPane to the desired vValue?

I have a tilepane inside a scrollpane. The tilepane is filled with buttons that have actions like delete or edit. After I delete or edit a button, the scrollpane automatically goes back to the top, which I don't want. I want it to remain at the…
Isoldhe
  • 300
  • 1
  • 7
  • 20
1
vote
1 answer

JavaFX - get scene coordinates of child in ScrollPane

I'm trying to calculate the scene coordinates from a child inside a ScrollPane. We did this on several other nodes in our project with this method this.boundsInLocalProperty().addListener( ( observable, oldValue, newValue ) -> { final Bounds…
grill2010
  • 574
  • 6
  • 23
1
vote
1 answer

Javafx stage doesn't show V-Scrollbar

I have a Javafx application, which provides the user a set of tools, each started in a new Stage. I tried for hours but one of these stages never shows the vertical scrollbar. Since I never can see the lower part of the stage, I have neither access…
Alex
  • 1,387
  • 2
  • 9
  • 14