Change Editor tab foregroung/background color

Post here questions and problems related to oXygen frameworks/document types.
sebastienlavandier
Posts: 124

Change Editor tab foregroung/background color

Wed Sep 16, 2015 12:04 pm

Hello,

I want to know if is it possible to change something like foreground color or background color of an editorTab ?
That is for detect more easily which editor Tab is editable or not.

Thanks in advance for your help.
Sébastien.L
Radu
Posts: 5208

Re: Change Editor tab foregroung/background color

Wed Sep 16, 2015 2:25 pm

Hi Sébastien,

Right now we only have this API:

Code: Select all

ro.sync.exml.workspace.api.editor.WSEditorBase.setEditorTabText(String)


All editors are placed in a JTabbedPane. Maybe starting from the API ro.sync.exml.workspace.api.editor.page.author.WSAuthorEditorPage.getAuthorComponent() you could navigate up on the Swing components, find the tabbed pane and use:

Code: Select all

javax.swing.JTabbedPane.setBackgroundAt(int, Color)


Regards,
Radu
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com

Return to “SDK-API, Frameworks - Document Types”

Who is online

Users browsing this forum: No registered users and 1 guest