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

What's the best way to add a bunch of Button to a ScrollPane?

I'm kinda new to JavaFx, for my application I need to set an indeterminate bunch of buttons on a part of the screen. Since I don't know how many buttons I'll need until the program is started, I thought on set a ScrollPane to this part of the…
Juan
  • 1,949
  • 1
  • 15
  • 22
2
votes
1 answer

Javafx Node position in Scrollpane

I want to know, if a node is visible at the current view position of a scrollpane and also how much. Does anyone know how to read the position values of a node according to this issue? I tried it already with getBoundsInParent.getMaxX(), but this…
Studiosus
  • 143
  • 1
  • 11
2
votes
0 answers

Issues displaying images behind an inactive libgdx scrollpane

SOLVED using scroller.setFadeScrollBars(false); scroller is a ScrollPane object. The background texture is only displayed when the scrollpane is scrolling, then it fades out to black. The text that is drawn displays fine in all cases. I don't know…
2
votes
1 answer

JavaFX: ScrollPane method getChildren() is not visible

I have created a Stage from an AnchorPane and some children elements (the AnchorPane and its children have been created in Java Scene Builder) and the hierarchy is shown below: The stage and the scene are of course created programmatically at…
pkaramol
  • 16,451
  • 43
  • 149
  • 324
2
votes
3 answers

Why doesn't TextArea occupy entire area of ScrollPane in JavaFX? How to add scroll bars to TextArea in JavaFX?

In Swing I was to add JTextArea into JScrollPane in order JTextArea to have scroll bars. When I do the same in JavaFX, the behavior is different. This example import javafx.application.Application; import javafx.scene.Scene; import…
Dims
  • 47,675
  • 117
  • 331
  • 600
2
votes
1 answer

How to increase the scrolling of the ScrollPane in JavaFX?

I am using ScrollPane on my JavaFX application. The Scrollpane has TilePane as its content, having thousands of tiles displaying. The scolling is too slow. How to increase the scrolling of the ScrollPane? Thanks.
Warren Nocos
  • 1,222
  • 1
  • 14
  • 29
2
votes
1 answer

Adding Libgdx Scrollbar to TextArea

So I've been searching around and for the life of my cannot figure out how to correctly do this. I simply have a small text area and want to be able to scroll through it. I've been told it's as easy as adding the TextArea to a ScrollPane, but it…
Nick Moser
  • 25
  • 1
  • 5
2
votes
1 answer

Removing JavaFX Scroll Pane Hotkeys

I'm trying to put a text box (custom rendered) into a ScrollPane except when I hit space to put a space into the text box, space is also the hotkey to scroll down in the scroll pane so it enters the space and than scrolls down in the scroll pane.…
Arhowk
  • 901
  • 4
  • 11
  • 22
2
votes
1 answer

JavaFX - Zoom relative to mouse position

I can't get working zoom relative to mouse position in JavaFX. I've read and tried rewrite this and this, but it's not working. Can't scroll viewport using scrollPane.setViewportBounds(). I must use scrollPane.setHvalue() and…
user3428467
  • 21
  • 1
  • 2
2
votes
1 answer

disable horizontal scrollbar using ScrollPane

i am trying to disable the horizontalScroolbar on Scrollpane.. i have tried using setHorizontalScrollbarVisibility() method but it doesnot work.i want to make the horizontal bar disappear.. i also tried using JScrollPane but it did not display my…
2
votes
1 answer

Iframe reloaded, how to scroll parent page to top with Scrollpane

I have iframed a tumblr blog on a website. I am using scrollpane. See here http://danmccarthy.net/news/ My problem is that the buttons pagination of the blog reload the iframe to the next page but I can't figurate how to scroll to top the parent…
tomdelalune
  • 61
  • 2
  • 6
2
votes
2 answers

jquery scrollpane ms ajax updatepanel doesn’t work after post back

I have received a new design for a website and in the design the designer used jquery. I'm implementing the design no into an ASP.NET Ajax application. But I ran into a problem. I have a page with an update panel and a menu. When a menu item is…
Patrick
  • 23
  • 1
  • 4
2
votes
2 answers

JavaFX ScrollPane - How to use one scrollbar to scroll 2 ScrollPanes?

I have BorderPane with left and center part, both are ScrollPanes. How to scroll them with one scrollbar ( vertical ). Or how to get access to one of the ScrollBars ?
kingkong
  • 1,537
  • 6
  • 27
  • 48
2
votes
1 answer

JAVAFX 2.0 How can i dynamically change the content in a scrollPane?

Im making a playlist in a scrollPane, but I want to change the content in the scrollPane when I load a new playlist. setContent() just adds content. How can I remove the old content in the scrollpane and insert my new text, ie. is there a way to do…
Yongan Wu
  • 113
  • 2
  • 2
  • 5
2
votes
0 answers

Javafx 2 : Vertical scrollbar on TableView doesn't Visible, how to fix this?

The TableView has a built-in scroll bar, but why do I not see the vertical scroll bar? Here is my code when I put TableView in a HBox: HBox HBox_tabelDatabase = new HBox(); HBox_tabelDatabase.setAlignment(Pos.TOP_CENTER); …