we are developing one word processor.(for movie scripts)
in core functionality i want to control tab for my own..
that is i have handllling some (xml)(like action,character,dialogue , scene) each object having certain properties(like left indent , right indent , font size,color) i am defined each in one mutual attribute set. objects in JTextPane.i want to move on objet from another when tab is pressed.
at the same time i want to set the cursor to the new line.
i am typing "ashok" (in line 1 )in JtextPane and press Tab i want to move the cursor to the line 2..
genius please help it's very urgent requirement..i am deep trouble now..
Please read this FAQ. And it is not usual for the tab key to be used to navigate around the document.
without tab key now iam navigating through the document by abstract action class and keyMaps..
but what i want is i want to move the caret position to some new location....the document yet not travalled.
like i am line 1 .after typing ashok(now the offset vale is 5)now i am hitting a tab i want to one action at same time i want to move the cursor position to next line ..now i am able to the action after hitting the tab..but i am not able to move the cursor position.. like ....
textPane.setCaretPosition(some new offset value i am given); textPane.moveCaterPosition(some new offset value i am given);
but the above two are failed because my new value is greater than the document length..
And I have already told you about "urgent" posts; have you read that FAQ?
Joined: Aug 19, 2008
thanks a lot.. i got it..
now i want one popupwindow without any min,max,close button...but i want title.
i tried lot of things.but now i am faded up.fianlly after long time googling it was supported by JInternalFrame's..so now tell me how i can get JInhternalFrame without the three but title is must...also i want to move the popup around the document..
thanks in advance Ranchers
Joined: Oct 13, 2005
Don't know. But somebody else does. Have a look at this thread from last year, and see whether that helps