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

ScrollPane containing JTable takes up height of COntainer

I have a ScrollPane and JTable that should only have one row of data. String[] daysOfWeek = {"Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday"}; String[][] data =…
user485498
1
vote
1 answer

ScrollPane doesn't work with dynamic content in as3

scrollPane.setSize(400,400); scrollPane.source=emptyc; Where emptyc is a container in which I add content dynamically (i.e. by addChild method) doesn't work. It simply doesn't scroll at all. Neither does work if I add content using scrollPane as a…
user1212216
  • 41
  • 2
  • 9
1
vote
0 answers

How do I incorporate a scroll bar after a few instances of actionListener?

Ok. so I'm writing a grocery checkout system code and on the right side of the frame, I'm displaying a Jpanel with Labels. Every time I click the 'Scan' button, I add a new label into the JPanel so that everytime I click, it displays the output. …
1
vote
1 answer

AS3 buttons within movie clip, inside ScrollPane

I have a multiple scenes *.fla, there is a linkage between scenes using buttons which works just fine. Some of these scenes contain components ScrollPane (1 per scene), inside a ScrollPanes there area movie clips holding buttons - which also work…
1
vote
1 answer

How can I get rid of the extra space in a Scala Scrollpane table?

I am making a table in SCALA using the ScrollPane, by creating a Table and RowHeader inside of the scrollpane, which lets me give the user the ability to resize my column widths. However, when there isn't much in this table yet, I get a bunch of…
Museless
  • 137
  • 2
  • 10
1
vote
2 answers

Horizontal scrollPanel not displaying with CellTree

I have a Celltree inside a ScrollPanel. I set the size of the ScrollPanel in the UIBinder as follow
Momo
  • 2,471
  • 5
  • 31
  • 52
1
vote
1 answer

JavaFX ScrollPane and FlowPane properties to resize the FlowPane if columns overfill the ScrollPane width

I have a FlowPane wrapped in a ScrollPane. FlowPane orientation is Vertical, so it will wrap the controls. But I want to set the FlowPane to resize vertically if the columns size is greater than the width of ScrollPane. I've tried a lot of settings,…
Vali Maties
  • 94
  • 1
  • 8
1
vote
0 answers

How to resize images in JScrollPane as frame resizes

I need to develop an image gallery of sorts, where I can display images in a JFrame, and I can scroll and double click to expand to full screen etc. I was able to display the images the way I want it, but when I resize the JFrame, the images gets…
Cherple
  • 725
  • 3
  • 10
  • 24
1
vote
1 answer

Java Swing Scrollpane not scrolling

I want to be able to scroll down a dynamically generated list of movies. I tried adding a Scrollpane. I have a navigation bar at the page start and in the center a jpanel with all the movies. You can recreate this example by using this…
anon
1
vote
1 answer

Page Pilling or FullPage - How to make this scroll effect

I know that it is not a very precise question, but I do not know where to start, I have an example which is the objective design, however I cannot find any solution and / or documentation to help me make this type of layout. More specifically this…
1
vote
1 answer

How do you make a MovieClip inside a scrollPane move to a new location using AS3?

I have an MC that is a list and it's inside a scrollPane. I want to make the list jump to a new location by clicking an object inside the MC. I do not want the user to manually scroll the list. However, I'm not sure how to reference the MC in the…
1
vote
1 answer

Aligning Two Scrolling Gridpanes in Javafx

I have two scrollpanes containing grids that I am trying to align. They should both have cell width of 40, so I'm not sure why they become unaligned. Even though they appear to align at first, they gradually become unaligned. Here, they are…
1
vote
0 answers

Change background color of all ScrollPanes defined by class

I am trying to change the background of a all ScrollPanes that are defined by my MethodScrollPane class: package Opmaak.Interfaces.Panes; import Opmaak.Var; import javafx.scene.Node; import javafx.scene.control.ScrollPane; import…
Jomy
  • 514
  • 6
  • 22
1
vote
1 answer

JavaFX Pan and Zoom with Draggable Nodes Inside

I have a simple JavaFX pan and zoom application as show below. The pan and zoom functionality work great, but I would also like to be able to drag and drop the circle node too. The problem I have is that the scrollpane gets all of the mouse events…
Jason Ash
  • 33
  • 5
1
vote
1 answer

ListView auto-scroll only working when manually scrolled to the bottom once

I made an extension of the JavaFX ListView component : HL7ListView extends ListView The goal is for it to auto-scroll the parent ScrollPane as new items are added to it. I have a constructor that takes the ScrollPane in question as an…
Martin
  • 1,977
  • 5
  • 30
  • 67