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 8503497
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T01:46:22+00:00 2026-06-11T01:46:22+00:00

In the application above I have a tabpane (the one with age, gender and

  • 0

enter image description here

In the application above I have a tabpane (the one with “age”, “gender” and “zipcode”) where each tab contains a VBox. The VBox is split in two:

The upper part of the VBox lets you view a list of lists, the lower part of the VBox contains a menu that allows you to change the list of lists.

The button in the lower part of the VBox updates the aforementioned list of lists. I want the upper node in the VBox to be updated anew when the underlying lists are changed.

The relevant code snippet might be

Node createHierarchySplitMenu(HierarchiesFromFile hierarchies, String hierarchyName){

    VBox vBox = new VBox();
    vBox.getChildren().add(createHierarchyScrollPane(hierarchies, hierarchyName));
    vBox.getChildren().add(createHierarchyMenu());

    return vBox;
}

When the button in the node in the lower part of the VBox (created by createHierarchyMenu()) I want createHierarchyScrollPane() to be called again to show the new list of lists. How do I do that?

Is there a regular pattern/way of updating one node from another (when they are at the same level.)?

What have you tried? Nothing worth mentioning- I am stuck.

If you need more info, please ask. Didn’t want to bog you down with code.

  • 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-06-11T01:46:23+00:00Added an answer on June 11, 2026 at 1:46 am

    From what I understand the solution can be next:

    1. Create class to handle createHierarchyScrollPane():

      private class HierarchyScrollPane extends ScrollPane  {
      
          public void update(HierarchiesFromFile hierarchies, String hierarchyName) {
               // code from createHierarchyScrollPane() which works with "this" instead of new Scroll Pane
          }
      }
      
    2. Pass instance to createHierarchyMenu():

      Node createHierarchySplitMenu(HierarchiesFromFile hierarchies, String hierarchyName){
      
          VBox vBox = new VBox();
      
          ScrollPaneUpdate hsp = new HierarchyScrollPane();
          hsp.update(hierarchies, hierarchyName);
          vBox.getChildren().add(hsp);
          vBox.getChildren().add(createHierarchyMenu(hsp));
      
          return vBox;
      }
      
    3. Somewhere in createHierarchyMenu():

      public void createHierarchyMenu(final HierarchyScrollPane hsp) {
           // ...
           Button btnSetMin = new Button("Set Min");
           btnSetMinsetOnAction(new EventHandler<ActionEvent>() {
              public void handle(ActionEvent t) {
                   // your code for data update
                   hsp.update(hierarchies, hierarchyName);
              }
           }); 
      }
      
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Application, have a TextBlock and two Buttons, the text is displayed TextBlock by clicking
As part of building an ASP.net application, I have to display two things for
Sheet1 Sheet2 Above i have two images link that i have captured from my
I have this two routes currently in my application after decommenting out many other
I am working on a Windows Forms application. I have two tab2 in my
I'm developing an Android 3.1 and above application. I have this code to download
I'm developing an Android 3.1 and above application. I have added a thread to
I'm currently working on a web application and the powers above have decided that
I'm developing an Android 3.1 and above application. I'm using Spring Framework 1.0.0.0RC1 for
Basically the above, I need my mobile application (which is built with Trigger) to

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.