[SOLVED] Inserting at the cursor/Pointer location in a JTextField.
Okay I need some help. This is my first time doing this and am at a point where I can not continue on my own. I have been trying to solve the problem for a few days now.
In a JTextField I can get the Pointer location with
Now this is the problem. How do I insert a character at that point and move it one to the right?
PointerInfo a = MouseInfo.getPointerInfo();
Point b = a.getLocation();
int x = (int)b.getX();
int y = (int)b.getY();
I'm using multiply JTextFields and would like to insert the character at any point in any JTextField.
Can some one please help me.