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
3
votes
1 answer

JavaFX ScrollPane PannableProperty with TitledPane

I'm building a GUI application with javafx that needs PannableProperty from the ScrollPane to work when the user drag the content of it from anywhere. In oracle docs they say about the "pannableProperty": Specifies whether the user should be able…
Hany Alom
  • 67
  • 5
3
votes
2 answers

Javafx Disable Scrolling by Mousewheel in ScrollPane

Does anayone know how to disable scrolling by Mousewheel in a ScrollPane?
Studiosus
  • 143
  • 1
  • 11
3
votes
2 answers

JAVA-LIBGDX How to set up correctly a scrollPane

I am trying to add to my game a less sliding menu(left and right) at the bottom of the screen. My problem is that I can not adjust the table at the bottom of the screen, this is my code: private void initUI() { // inizializzazione dello stage …
user1087543
  • 49
  • 1
  • 5
3
votes
1 answer

Drawing inside a scrollpane in JavaFX8

After hours of searching I couldn't find a solution for my problem. I got a simple drawing application where I have a rectangle to draw lines on. This rectangle should be inside a Scrollpane, so that if it' bigger than the program window, the user…
Murdoc
  • 75
  • 3
  • 8
3
votes
1 answer

How to set scrollbar of scrollpane for label

I have guidance text in my app, which I put it in the label and is child of scrollpane. But the text is too long and I cannot by the scroll bar to get all text in the label. Any idea how to set the measure of scrollbar of scrollpane to get whole…
user3770144
  • 105
  • 1
  • 2
  • 12
3
votes
4 answers

null object reference in ScrollPane/endDrag() when scrollDrag=true

In my flash application, I've got multiple windows which use Scrollpanes. The scrollDrag property is set to true on these because I want that functionality. If I close (within my application) one of these 'windows' and open another, I seem to get a…
Erix
  • 7,059
  • 2
  • 35
  • 61
3
votes
1 answer

libGdx: Scrollable stage that is larger than screen

I'm trying to create a little game with libGdx. For the level selection, I'd like to have a something similar to the level selection in AngryBirds where you can scroll through a large "map" and then select a level. I know there are several tutorials…
tomet
  • 2,416
  • 6
  • 30
  • 45
3
votes
6 answers

LibGdx How to fix a ScrollPane scroll bar position at a specific position?

How to fix a ScrollPane scroll bar position at a specific position so that it displays for example the last item of it's child Table instead of the first item Table(default)? I try setScrollX and setScrollY but it doesn't work. I have a game level…
Mak
  • 123
  • 1
  • 9
3
votes
3 answers

Libgdx scrollPane not scrolling after i added a scrollPaneStyel

My scrollPane is not scrolling when i add ScrollPaneStyle, does anyone know why is happinging? scroller = new ScrollPane( myWidget , skin); scroller.setBounds(0, 0, Gdx.graphics.getWidth(), Gdx.graphics.getHeight()); …
3
votes
0 answers

How to use my trackpad for horizontal mousewheel scrolling in Java Swing

According to How to use my trackpad for horizontal mousewheel scrolling in a Java AWT ScrollPane, one should be able to scroll horizontally via a Trackpoint. But it works only vertically for me. I'm using Debian Wheezy, and tried it with OpenJDK 1.7…
Thomas Rebele
  • 374
  • 3
  • 11
3
votes
1 answer

Moving a component out of ScrollPane - JavaFX

I ask for your help because I have a problem with a ScrollPane in JavaFX. I added a Group into the scrollPane, added the scrollpane to the Scene and finally put it into a JFXPanel because I use it in a Swing application and it's working well, next I…
AwaX
  • 448
  • 3
  • 8
  • 19
2
votes
1 answer

ScrollPane.setVvalue() does not update scrollbar in javafx

I have a program where I can insert something in a textfield and then after pressing the enter button, it will be displayed as a label in a VBox. My layout looks like this: A tab with inside a borderpane with on the bottom a hbox containing a…
Paul Kocian
  • 487
  • 4
  • 20
2
votes
0 answers

How to add new fxml to scrollpane when i click button?

I want to load a new fxml to scroll pane when I click a button. RoutinesController does not work. When I click plusbtn, I want the plusaction method to add fxml to the scroll pane. I already added fxml 5 times to the scroll pane in…
lallabblla
  • 21
  • 1
2
votes
1 answer

JavaFx : Enable outer scrollview once the end of inner scrollview has been reached

I have a parent scrollpane which contains a webview as one of its children. When I scroll over the webview by having the mouse pointer on the webview area, it continues scrolling as expected till the end of the webview. However, is there a way where…
vi90
  • 73
  • 8
2
votes
1 answer

How to create a scrollpane on fxml using controller

I would like to create a scrollpane and button from the controller and display it in fxml, is that possible? This my code but it doesn't work controller package application; import javafx.scene.control.Button; import…
Napster89
  • 63
  • 6