Forums
New posts
Search forums
Members
Current visitors
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Search forums
Menu
Log in
Register
Install the app
Install
Forums
Archive
Archive
Java
Comment on design
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
[QUOTE="-, post: 614761"] In my case, since Gap is my class, I can pass to its constructor, or in your case the NewGap's constructor, a reference of the class that has the doLayout() method. I'm trying to avoid doing that because it looks out of place if you do a new Gap(someClass, x, y) rather than a new Gap(x, y); I'm wondering whether in the real world, the way I am going about doing it is accepted - that is to leave it up to the user to call setGap(Gap gap) again after he has set any new values of gap. [/QUOTE]
Verification
Post reply
Forums
Archive
Archive
Java
Comment on design
Top