How to create control array in swings...............
bharath54321 0 Light Poster
Recommended Answers
Jump to PostYou can create an array of swing components exactly like an array of any other class, eg
JButton[] myArrayOfJButtons = new JButton[6]; // creates empty array for 6 JBUttons for (int i = 0; i < myArrayOfJButtons ; i++) { myArrayOfJButtons[i]= new JButton... // put a button …
All 4 Replies
mKorbel 274 Veteran Poster
bharath54321 0 Light Poster
mKorbel 274 Veteran Poster
JamesCherrill 4,733 Most Valuable Poster Team Colleague Featured Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.