This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes Beginning Java and the fly likes overriding help Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "overriding help" Watch "overriding help" New topic
Author

overriding help

Rob Michaelson
Ranch Hand

Joined: Jul 15, 2003
Posts: 36
Hello,
I need to overide the AViewA (differnet class than the one below called MyScene) with get and set Color> (public Color getColor() ) and >(public void setColor(Color c)).

Thanks
Rob
I am not sure how it works or where to put it
Ernest Friedman-Hill
author and iconoclast
Marshal

Joined: Jul 08, 2003
Posts: 24183
    
  34

Note that I have no idea whatsoever what "dlibrary.AViewA" is, although I don't think I need to to answer this.
Right before the closing brace, you want to have something like

You don't say -why- you want to override these methods, so I can't tell you what to put in place of the "// More code here" comments, but it's a start.


[Jess in Action][AskingGoodQuestions]
Rob Michaelson
Ranch Hand

Joined: Jul 15, 2003
Posts: 36
Thank you for your reply!
AViewA is a typo sorry
would my own code be something like changing the ARectangle or ARectangle.setColor (rgb); ??
Rob
Rob Michaelson
Ranch Hand

Joined: Jul 15, 2003
Posts: 36
Hello again
so far I have this override:

Any help would be greatly appreciated
Rob
 
Consider Paul's rocket mass heater.
 
subject: overriding help
 
Similar Threads
Why does it not show the new coordinates?!!??!!
Multithreading: bouncing balls problem
Problems moving shapes when set up own Shapes class extending Path2D.Double
Graphics and JVMs
identifier expected