• Post Reply Bookmark Topic Watch Topic
  • New Topic

Inherit Question....Help me Pliz......  RSS feed

 
tatico nava
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Luke Shannon
Ranch Hand
Posts: 239
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
Layne Lund
Ranch Hand
Posts: 3061
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!