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

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