Originally posted by Shay Gaghe:
In my particular case I have class named A that extends Jlabel, and in the A I have another class named B that extend Jlabel as well. in order to perform image displaying from B I meant to call (by super(image) to the Jlabel constructor but I cant because A is the superclass, how can I do such a performance calling the Jlabel constructor(which is the A superclass)?
(I don�t know why its not calling the B superclass which is jlabel as well, I try it but I receive compiling error)
OK.
In this case you need to ensure 2 things
1) Class A has default, no parameter constructor, else call its parameterized constructor appropriately.
2) While calling super(Icon image) in the inner class constructor, image shouldn't be an instance variable of the inner class B, or its outer class A.
HTH,
- Manish
[This message has been edited by Manish Hatwalne (edited October 15, 2001).]