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

  • Home
  • SEARCH
  • 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 8772739
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T18:06:25+00:00 2026-06-13T18:06:25+00:00

I have 2000 data. i want to bind data to choice box in javafx

  • 0

I have 2000 data. i want to bind data to choice box in javafx 2.2 at run time. When i bind data to choice box then its show

java.lang.RuntimeException:java.lang.reflect.InvocationTargetException

exception and my application is hanged. Please give me some suggestion.

  • 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-13T18:06:26+00:00Added an answer on June 13, 2026 at 6:06 pm

    Does the same binding work for smaller set of data?

    Next code works for me. Popup has a 1-2 secs delay before appearing first time although.

    public class DoHugeChoiceBox extends Application {
        @Override
        public void start(Stage stage) {
            ObservableList<String> list = FXCollections.<String>observableArrayList();
            for (int i = 0; i < 2000; i++) {
                list.add("item " + i);
            }
            ChoiceBox cb = new ChoiceBox(list);
            cb.getSelectionModel().select(1000);
    
            HBox g = HBoxBuilder.create().children(cb).build();
            stage.titleProperty().bind(cb.valueProperty());
    
            stage.setScene(new Scene(g));
            stage.setHeight(100);
            stage.setWidth(200);
            stage.show();
        }
    
        public static void main(String[] args) { launch(); }
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

i have 4 data sources that i Want to bind to a datagridview, so
I have a data source with about 2000 lines that look like the following:
I have a calendar table with data from year 2000 to 2012 (2012 wasn't
I have a data frame that's about ts1[100, 2000] in dimension as follows: >
I have this data: 1, 0., 0., 1500. . . 21, 0., 2000., 1500.
I have this type of data: entity, account, month1, month2, ..., month12 abc, 2000.02,
How to sum data week wise in MS-SQL 2000 I have a Table Reports
I have an array of 1000-2000 elements which are pointers to objects. I want
I have a table with about 1000 records and 2000 columns. What I want
SQL SERVER 2000: I have a table with test data (about 100000 rows), I

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.