DEV Community

loading...

Discussion on: Why doesn't my custom canvas display when using the same Graphics context? [repost]

Collapse
sfiquet profile image
Sylvie Fiquet

It's been a long time since I last wrote java code, but aren't supposed to prefix all properties with this. when you access them?

Collapse
baenencalin profile image
Calin Baenen Author

Not unless there is a loxal var with the same name.

Collapse
sfiquet profile image
Sylvie Fiquet

You're totally right, sorry. Are you using Swing? I don't know the library but there seem to be lots of people with similar problems on StackOverflow. There's probably the answer to your problem somewhere in there.

Thread Thread
baenencalin profile image
Calin Baenen Author

Yes (I think) as well as awt, all the code is shown, and it's a custom implementation, so idk how many other questions are compatible with this class I've made (unless the code I've written is actually common).

Thanks for your help thus far, though.