Internal Frame Event Listener

Hello. A program I am buidling has an internal frame which contains a JTextArea. I am trying to listen for events such as the internal frame being resized, maximized, or iconified and then detect what the width or height of the internal frame is after such an event. Is there any way I can do this? I tried having a class that extends JInternalFrame and implements ComponentListener but I get an error that says this class is not abstract.

[446 byte] By [lesnaubra] at [2007-11-27 9:10:20]
# 1
Uau...As far as I know u can extend abstract and non abstract classesStrange!!!:|
charllescubaa at 2007-7-12 21:51:37 > top of Java-index,Java Essentials,Java Programming...
# 2
Im not expert on swing.But I think the JFrame class has listeners for detecting iconifying, resizing and other events.Are u using NetBeans? If so take a look at the JFrames events.
charllescubaa at 2007-7-12 21:51:37 > top of Java-index,Java Essentials,Java Programming...
# 3

It isn't the extending part that is giving the error. I'm pretty sure it's because of how I am trying to implement ComponentListener. And yes JFrame does have those capabilities but I am using JInternalFrames. Is there way to put a JFrame inside of another JFrame to act like a JInternalFrame? If it requires a decent amount of changes, then I cannot consider it because this program I am making already has most of it build around the fact that I am using JInternalFrames.

lesnaubra at 2007-7-12 21:51:37 > top of Java-index,Java Essentials,Java Programming...
# 4
I actually will not be able to use JFrames.
lesnaubra at 2007-7-12 21:51:37 > top of Java-index,Java Essentials,Java Programming...
# 5
Any ideas?
lesnaubra at 2007-7-12 21:51:37 > top of Java-index,Java Essentials,Java Programming...
# 6
> Any ideas? 1) Swing related questions should be posted in the Swing forum.2) Your implementation of the ComponentListener is wrong.
camickra at 2007-7-12 21:51:37 > top of Java-index,Java Essentials,Java Programming...