how to access moveCaret(MouseEvent e) function or any other private functions
0 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   J_R
Posted On:   Monday, September 10, 2001 02:53 AM

i Have written code
__________________________________
DefaultCaret dc=new DefaultCaret();
dc=(DefaultCaret)textfield.getCaret();//where textfield is the JTextField
______________________________
Now I want to call

dc.moveCaret(Mouse event e);

but it is giving error that the moveCaret(java.awt.event.MouseEvent) has protected access in javax.swing.text.DefaultCaret
How to access moveCaret .
Thanks in advance.

About | Sitemap | Contact