We are about to switch to a new forum software. Until then we have removed the registration on this forum.
Hi, i don't really know how to ask this on google :
I have multiple page (each page is a class and have one instance) on my application and every time i change the page where i am, i reset my arrayList where is stock all my Button
In each button i want to acces to the variable focus (if one button is focus other are unfocus)
for(int i = 0; i < button.size(); i++) button.get(i).focus = false;
i got the error : "the name "button" cannot be recognized"
i search a code like :
for(int i = 0; i < this.parent.size(); i++) this.parent.get(i).focus = false;
here parent is not a class name but the arrayList.
I don't know if i was clear, i'm newbie and my english is not really good.
Answers
Your question is not clear. Post your entire code, formatted correctly.
You said:
and then:
... Button != button. Is your problem capitalization of the variable name? Can't tell without seeing your code..
buttons with s maybe...?
Sorry, but i can't post the entire code : i have 600 ligne in 4 page This first part is where i have my class
This third part is where i create and call my Page "menu"
I think i give all you need.
The question was how too find the container of an arrayList... The answer is : we can't.
Thx for the time you give me.