How Do I create an Array of GUI Controls in the NetBeans GUI Builder?

There is no IDE action dedicated to that. If the number of controls (the length of the array) is static, and you need the array only to loop over the controls, try this:

Add all components manually (via drag and drop). Then create an array in code and fill it with all the component variables.

  Applies to: All Netbeans Versions
  Platforms: All
Not logged in. Log in, Register

By use of this website, you agree to the NetBeans Policies and Terms of Use. © 2012, Oracle Corporation and/or its affiliates. Sponsored by Oracle logo