jags
July 26th, 1999, 06:29 AM
Hi,
I have a class HTMLEditor which extends JPanel and implements MouseListener, MouseMotionListener. There is another class Holder which extends JEditorPane. Every tag is placed in a Holder object(eg. <p> This is test). This is placed on The HTMLEditor. Likewise all the other tags are placed on the HTMLEditor. Now, when i click on the JPanel , the mouse responds but when i click on the Holder object the mouse does not respond. Before using JEditorPane , i used Container. The object was moving as well as resizing.. Since JEditorPAne is also a Container... it should behave in a similar way. Can u help ?
TIA
I have a class HTMLEditor which extends JPanel and implements MouseListener, MouseMotionListener. There is another class Holder which extends JEditorPane. Every tag is placed in a Holder object(eg. <p> This is test). This is placed on The HTMLEditor. Likewise all the other tags are placed on the HTMLEditor. Now, when i click on the JPanel , the mouse responds but when i click on the Holder object the mouse does not respond. Before using JEditorPane , i used Container. The object was moving as well as resizing.. Since JEditorPAne is also a Container... it should behave in a similar way. Can u help ?
TIA