Re: clearer question


[ Follow Ups ] [ Post Followup ] [ WWWBoard for 308-203A ] [ FAQ ]

Posted by Jacob Eliosoff on October 02, 19100 at 23:24:10:

In Reply to: Re: clearer question posted by Halim Kanaan on October 02, 19100 at 18:55:34:

>how do you refernce the window you want to iconify and deiconify from the IconifiableWindow class

In any given method in the class, you can refer to the window being
iconified (the object the method was "called on") as "this". Often you can
just leave it out. For example, suppose you define a boolean instance
variable "isIconified" in the IconifiableWindow class. Then suppose you
want to get the current value of isIconified from inside the draw() method.
You could check it as "if (this.isIconified) ...", or equivalently "if
(isIconified) ...".
If this doesn't make things any clearer, try rephrasing your question.
In particular, what do you maen by "the window you want to iconify"?
-Jacob



Follow Ups:



Post a Followup

Name:
E-Mail:

Subject:

Comments:

Optional Link URL:
Link Title:
Optional Image URL:


[ Follow Ups ] [ Post Followup ] [ WWWBoard for 308-203A ] [ FAQ ]