Forums Register Login

Inherit Question....Help me Pliz......

+Pie Number of slices to send: Send
Hey!

My question is can the Properties of a Subclass that is inside of a SuperClass be CHANGE by another Subclass?

I have a class that is an extends of JFrame which is the Superclass and another one that is a extends of a JPanel which is the Subclass that is inside of the Superclass. The other Subclass is one that wants to Change the setLocation of the JPanel subclass, but it doesn't do it. i can see the value of the properties but i can't change it.

If you can help me PLIZZ do : ) i been on this for like 2 days.
+Pie Number of slices to send: Send
I am not sure I understand.

Are you saying the you have a class (lets call it parent) that is the super class of a second class (lets call this child) and in your implementation child is an inner class or parent?

Can you post some code examples?

Luke
+Pie Number of slices to send: Send
Your question would be much more clear if you post some actual code snippets. The verbal explanation is nice to help us understand what you *mean* to do, but the code is necessary to see what you are *actually* doing.

Keep Coding!

Layne
You had your fun. Now it's time to go to jail. Thanks for your help tiny ad.
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com


reply
reply
This thread has been viewed 634 times.
Similar Threads
complex dialog layout?
Question regarding Inheritance
question from Dan's exam - ClassCastException
compareTo() method
A tricky Question
More...

All times above are in ranch (not your local) time.
The current ranch time is
Mar 28, 2024 05:31:30.