i want ot make a 2-dimensional array of JToggleButtons to store toggle button names but i cant figure out the snytax Please Help!
slayer10
0
Light Poster
Recommended Answers
Jump to PostJToggleButton[][] buttons = new JToggleButton[5][5];
That just declares the type and dimensions. You still have to set each element equal to a new instance of JToggleButton.
All 3 Replies
Ezzaral
2,714
Posting Sage
Team Colleague
Featured Poster
slayer10
0
Light Poster
slayer10
0
Light 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.