Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7544209
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T08:37:20+00:00 2026-05-30T08:37:20+00:00

EDIT I was looking for a ScrollPane not a ScrollBar. <ScrollPane fitToWidth=true fx:id=sasd> <content>

  • 0

EDIT
I was looking for a “ScrollPane” not a ScrollBar.

<ScrollPane  fitToWidth="true" fx:id="sasd">
<content>
    <VBox prefWidth="200" alignment="center" fx:id="Left">
        <children>
             <Label alignment="center" fx:id="gcProgramLine" text="g0x100 y123 z23"/>

Everything works just fine.

I have a VBox that I want to add MANY Labels to.. I would like the VBox to have the ability to “scroll” as these lines are added.

Right now this is what my FXML looks like. Its in a BorderPane.. However I have omitted the irrelevant portions.

<left>
    <VBox prefWidth="200" alignment="center" fx:id="Left">
        <children>
            <ScrollBar orientation="VERTICAL" fx:id="sasd">
              <children>
             <Label alignment="center" fx:id="gcProgramLine" text="g0x100 y123 z23"/>
             <Label alignment="center" fx:id="gcProgramLine" text="g0x121 y13 z23"/>
             <Label alignment="center" fx:id="gcProgramLine" text="g0x10 y113 z23"/>
             <Label alignment="center" fx:id="gcProgramLine" text="g0x100 y123 z23"/>
             <Label alignment="center" fx:id="gcProgramLine" text="g0x100 y123 z23"/>
             <Label alignment="center" fx:id="gcProgramLine" text="g0x100 y123 z23"/>
             <Label alignment="center" fx:id="gcProgramLine" text="g0x100 y123 z23"/>
             <Label alignment="center" fx:id="gcProgramLine" text="g0x100 y123 z23"/>
             <Label alignment="center" fx:id="gcProgramLine" text="g0x121 y13 z23"/>
             <Label alignment="center" fx:id="gcProgramLine" text="g0x10 y113 z23"/>
             <Label alignment="center" fx:id="gcProgramLine" text="g0x100 y123 z23"/>
             </children>
             </ScrollBar>
        </children>
    </VBox>

However this gives me error and compile and will not work. I have tried to remove children as well. No luck.. Any thoughts? I find it hard to find the “FXML” way to do things in Javafx 2.0. Using code is pretty easy…

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-30T08:37:21+00:00Added an answer on May 30, 2026 at 8:37 am

    ScrollPane doesn’t have property children, it has content of type Node. Next fxml will work for you:

    <ScrollPane fx:id="sasd">
        <content>
            <VBox prefWidth="200" alignment="center" fx:id="Left">
                <children>
                    <Label alignment="center" fx:id="gcProgramLine" text="g0x100 y123 z23"/>
                    <Label alignment="center" fx:id="gcProgramLine" text="g0x121 y13 z23"/>
                    <Label alignment="center" fx:id="gcProgramLine" text="g0x10 y113 z23"/>
                    <Label alignment="center" fx:id="gcProgramLine" text="g0x100 y123 z23"/>
                    <Label alignment="center" fx:id="gcProgramLine" text="g0x100 y123 z23"/>
                    <Label alignment="center" fx:id="gcProgramLine" text="g0x100 y123 z23"/>
                    <Label alignment="center" fx:id="gcProgramLine" text="g0x100 y123 z23"/>
                    <Label alignment="center" fx:id="gcProgramLine" text="g0x100 y123 z23"/>
                    <Label alignment="center" fx:id="gcProgramLine" text="g0x121 y13 z23"/>
                    <Label alignment="center" fx:id="gcProgramLine" text="g0x10 y113 z23"/>
                    <Label alignment="center" fx:id="gcProgramLine" text="g0x100 y123 z23"/>
                </children>
            </VBox>
        </content>
    </ScrollPane>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

edit: I'm not looking for you to debug this code. If you are familiar
[edit] I am NOT using jquery in this app. Looking for a way to
Edit: Not looking for anyone to write code for me, just looking for advice
EDIT I'm looking for the actual one or two liner that does what the
Edit: just to be clearer on what I am looking to do. I have
I am looking for a tool which will make able to edit parts of
I was looking for a way to call the edit method directly. - (void)tableView:(UITableView
I'm looking to analyze and compare the following `signals': (Edit: better renderings here: oscillations
Is there a best way to edit CSS? I'm looking for a designer tool.
EDIT: Looking for help from J. Leffler, Cheese Con Queso or anyone who knows

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.