Java GridLayout problem.

Caporegime
Joined
12 Mar 2004
Posts
29,962
Location
England
When I try this,

Code:
keys[i][y] = new JPanel();

It says that an array was expected but gridlayout found, the thing is though I have done exactly this before in other programs but it worked fine. :confused: I thought you can access the elements of a gridlayout just like you can with an array?
 
Back
Top Bottom