JTab Labeling

Hi,

How do I change the text on the tab of a JTab from the GUI designer (i.e. the tabs title: setTitleAt)?
I did it once. And at the time I thought well that's not very obvious. Turned out to be true. I can't figure it out a second time. Why can't it be in the property inspector?

0
5 comments
Avatar
Permanently deleted user

try double click on the tab title, and see what happens. in fact, most texts(from labels, buttons) can be modified this way.

0
Avatar
Permanently deleted user

tc master wrote:

try double click on the tab title, and see what happens. in fact, most texts(from labels, buttons) can be modified this way.


Inplace editing should also work for border titles.

--
Vladimir Kondratyev
Software Developer
JetBrains, Inc
http://www.jetbrains.com
"Develop with pleasure!"

0
Avatar
Permanently deleted user

'k...double clicking worked today - kinda :)

I say today because yesterday, when I double clicked, the tab disappeared completely.

However, having said that the tab is behaving somewhat strangely. When I double click I get an ellipse button at the end of the tab title field and the cursor changes to "I" beam edit icon. Any attempt to place the "I" beam in the title text results in the tab reverting to an none editable status. Is this by design?
I can edit the text by clicking the ellipse button and using the text edit dialog box.
Last time I successfully did this I'm sure I could just edit the text directly.

Thanks

Trev...

0
Avatar
Permanently deleted user

Hmmm...Well here's the story so far.

I opened 996. I cleared the UI form and started from scratch. The tab editing worked as related in the other post. Unfortunately when I switch to the associated ".java" file I get a null pointer exception and I have to quit IntelliJ. I had the same happen yesterday and sent in the details via the reporting form.

k...so now i revert to version 992. Unfortunately the tab editing doesn't work (double clicking makes the tab disappear). I'm not sure how best to report this, particularly the machine state. I did a lot adding and deleting to the UI form along the way.

I get the sense that the system gets its knickers in a twist [<-- technical term for something getting out of sync :)]when a lot of editing (adds, deletes, etc, is done with the gui designer. But I have no quantitative data to back that up.

0
Avatar
Permanently deleted user

Trevor Griffiths wrote:

Hmmm...Well here's the story so far.

I opened 996. I cleared the UI form and started from scratch. The tab editing worked as related in the other post. Unfortunately when I switch to the associated ".java" file I get a null pointer exception and I have to quit IntelliJ. I had the same happen yesterday and sent in the details via the reporting form.

k...so now i revert to version 992. Unfortunately the tab editing doesn't work (double clicking makes the tab disappear). I'm not sure how best to report this, particularly the machine state. I did a lot adding and deleting to the UI form along the way.

I get the sense that the system gets its knickers in a twist [<-- technical term for something getting out of sync :)]when a lot of editing (adds, deletes, etc, is done with the gui designer. But I have no quantitative data to back that up.



Please post exception to the tracker

--
Vladimir Kondratyev
Software Developer
JetBrains, Inc
http://www.jetbrains.com
"Develop with pleasure!"

0

Please sign in to leave a comment.