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

LibGDX ScrollPane Showing Black Screen

Situation: First of all, I'm newbie in LibGDX. I'm making a game where players may see all achievements in a screen, so I'm using a ScrollPane for this. The achievements are shown in a form of pop up (see image below). The list of achievements…
Jay Kazama
  • 3,167
  • 2
  • 19
  • 25
6
votes
3 answers

JavaFX How to scroll ScrollPane to have node in the middle of view port?

I have to create timeline with line showing current time. I'm using AnchorPane with added line placed in ScrollPane. I need to simulate 1 day, scrollpane width is ( 2880px, every 60px is one hour). My limits are ( previous day 12hour, and next day…
kingkong
  • 1,537
  • 6
  • 27
  • 48
6
votes
1 answer

JavaFX - Adding nodes to ScrollPane with correct scrolling direction

I have a ScrollPane in my scene and would like to add a series of Nodes to it. The exact amount must be dynamic. I've been testing the concept with Label nodes and can successfully add as many Labels as I want to the content of the ScrollPane…
CAG Gonzo
  • 589
  • 1
  • 5
  • 13
5
votes
4 answers

Get shown component in JScrollPane

I have a JScrollPane containing a JPanel. I fill this JPanel with many buttons. Is there any possibility to get the currently shown buttons? I know I can access the children of a JPanel via jpanel.getComponents() but those are all components in this…
Leon
  • 87
  • 6
5
votes
1 answer

In JavaFX, How can I keep the contents of a ScrollPane inside the borders of the viewport?

I realize that I can't be the first person who desires to keep the content of a ScrollPane within the borders of the ScrollPanes viewport, yet after several hours of searching, I cannot find an answer to my question. I've scoured Google, you.com and…
Michael Sims
  • 2,360
  • 1
  • 16
  • 29
5
votes
2 answers

JAVAFX zoom, scroll in ScrollPane

I have JAVAFX application with zoom and scale as described here: Scale at pivot point in an already scaled node What I need to achieve is to place the image to right pane and keep the image on the left as depicted in the figure below. Question How…
Radim Burget
  • 1,456
  • 2
  • 20
  • 39
5
votes
2 answers

How to fire event when scrolling up,javafx

I am developing chat application on java and i want to use function used by facebook to retrieve chat history when user scroll up. I tried "on Scroll" action which fire event whenever scroll reach top or down of scroll bar. Now i want to Fire…
user4990179
5
votes
1 answer

javaFX width css not reacting?

Im trying to get a dynamic scrollpane in my JavaFX (FXML) application using CSS. my CSS for the scrollpane looks like this: .scroll-pane { -fx-width: 80%; -fx-height: 80%; -fx-background-color: #FF3333; } the color works, but the…
Edwinhai
  • 67
  • 1
  • 1
  • 7
5
votes
1 answer

Libgdx ScrollPane adding space at the top

I'm creating a store for my game and I'm having issues with the libgdx ScrollPane. It seems to be moving the table within it down by 155px. The effect it's having is that the table appears roughly 155px down from the top, and the last button is off…
Townsfolk
  • 1,282
  • 1
  • 9
  • 21
5
votes
1 answer

JavaFX: Get visible area of ScrollPane

What I want to do: I've got a JavaFX ScrollPane and I need to determine the area visible in the ScrollPane. I know about ScrollPane.getViewPortBounds(), which allows me to get the size of the visible area, but not the position. Is there any way I…
midrare
  • 2,371
  • 28
  • 48
5
votes
3 answers

Remove JavaFX TreeView Scroll Pane

I need to use a JavaFX 2.2 TreeView control inside a larger scrollpane that has several other elements which are not part of the Treeview. The problem is that TreeView has its own built-in scrollpane. Does anyone have an example of a way to turn…
robross0606
  • 544
  • 1
  • 9
  • 19
5
votes
0 answers

how to ensure visible a node into a TitlePane which is into a scrollpane in javafx

I have a scrollPane which has various TitledPane into this, each TitledPane has various textfield's as children. When i navigate throughout textfield's using Tab key, the scrollpane do not autoscroll to ensure visible the control gaining focus. This…
kato2
  • 535
  • 4
  • 15
5
votes
5 answers

libgdx ScrollPane - Doesn't scroll?

I'm making a lobby in a multi-player game, which may have any number of players displayed in a table. I have the following code: camera = new OrthographicCamera(WIDTH,HEIGHT); camera.position.set(WIDTH/2,HEIGHT/2, 0); camera.update(); …
csga5000
  • 4,062
  • 4
  • 39
  • 52
4
votes
1 answer

How to show tooltips inside a ScrollPane without letting Flash 8 hide the tooltip?

I have the content of a scrollpane that, when clicked, show a tooltip movieclip with attachMovieClip; the problem is that the attached movie clip, for the first rows, goes under the border of the ScrollPane and is partially invisible. Is there a way…
Cris
  • 12,124
  • 27
  • 92
  • 159
4
votes
0 answers

Labels not wrapping text correctly in ScrollPane

I have a problem when I add a FlowPane to another pane in a ScrollPane. import javafx.application.Application; import javafx.scene.Scene; import javafx.scene.control.Label; import javafx.scene.control.ScrollPane; import…
Jomy
  • 514
  • 6
  • 22
1
2
3
25 26