Home > Back-end >  Excuse me under the JFrame box body, how many a checkbox one-time return all the selected tag?
Excuse me under the JFrame box body, how many a checkbox one-time return all the selected tag?

Time:09-28

If you have several checkbox component, but also can write one, such as use. GetState () or use. GetSelectedObjects (), but if the dozens of checkbox is writing code so very trouble?

Do you have a one-time return all selected checkbox method? Check for a long time did not find, thanked the here

CodePudding user response:

Give them the same name, you can pass the name access to an array of components
  • Related