edit: NVM i fixed it.. i was initialising the array everytime the user clicked a button so obviously it gave me an error :P
thx for the help
Type: Posts; User: emkoirl
edit: NVM i fixed it.. i was initialising the array everytime the user clicked a button so obviously it gave me an error :P
thx for the help
im trying with arrayList now..
Oh sorry I guess i got it wrong then, I'm a bit new to this. Do you mean to add them to a JList? how exactly would I iterate that to set the size for each of the items inside the list?
Ah too bad, thanks for the reply :)
I will just add them all to the list, i was thinking perhaps there was an easy yet more efficient and quick way to set the size of the JPanels, rather than...
I am trying to set the size of some of my panels, and since they will all be the same size i thought i could do it using a for loop, in which it loops through the different panels in the array and...