wood burning stoves*
The moose likes Swing / AWT / SWT and the fly likes Tab Controll Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "Tab Controll" Watch "Tab Controll" New topic
Author

Tab Controll

ashok kandaswamy
Greenhorn

Joined: Aug 19, 2008
Posts: 16
hi ,

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.

ex:

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..

help me soon....


Thanks
ashok.


Sk.Ashokkumar.....
Campbell Ritchie
Sheriff

Joined: Oct 13, 2005
Posts: 37913
    
  22
Originally posted by ashok kandaswamy:
genius please help it's very urgent requirement..i am deep trouble now..

help me soon....


Please read this FAQ. And it is not usual for the tab key to be used to navigate around the document.
Rob Spoor
Sheriff

Joined: Oct 27, 2005
Posts: 19649
    
  18

Read How to Use the Focus Subsystem and The AWT Focus Subsystem.


SCJP 1.4 - SCJP 6 - SCWCD 5 - OCEEJBD 6
How To Ask Questions How To Answer Questions
ashok kandaswamy
Greenhorn

Joined: Aug 19, 2008
Posts: 16
Originally posted by Campbell Ritchie:


Please read this FAQ. And it is not usual for the tab key to be used to navigate around the document.


hi okay,

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..

so What i want to do....?

give me ideas please quick....

i am strucked here....

by
ashok.
Campbell Ritchie
Sheriff

Joined: Oct 13, 2005
Posts: 37913
    
  22
Originally posted by Rob Prime:
Read How to Use the Focus Subsystem and The AWT Focus Subsystem.
I presume you have done that?

And I have already told you about "urgent" posts; have you read that FAQ?
ashok kandaswamy
Greenhorn

Joined: Aug 19, 2008
Posts: 16
Campbell ,

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

by
Ashok
Campbell Ritchie
Sheriff

Joined: Oct 13, 2005
Posts: 37913
    
  22
Don't know. But somebody else does. Have a look at this thread from last year, and see whether that helps
Michael Dunn
Ranch Hand

Joined: Jun 09, 2003
Posts: 4632
> so now tell me how i can get JInhternalFrame without the three but title is must...

read JInternalFrame's apidocs.

the answer is so simple
(you'll give yourself a triple uppercut when you find it)
ashok kandaswamy
Greenhorn

Joined: Aug 19, 2008
Posts: 16
Originally posted by Michael Dunn:
> so now tell me how i can get JInhternalFrame without the three but title is must...

read JInternalFrame's apidocs.

the answer is so simple
(you'll give yourself a triple uppercut when you find it)


yeah very nice i got it..thank you all........

and have a splendid Sunday.....
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Tab Controll
 
Similar Threads
Drop down list from tab on web page
tab report
How to change cursor height based on Font size
Coding conventions
birt cross tab page break + highlight rules