mising toolbar icon

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

mising toolbar icon

Tue Jun 30, 2015 11:11 pm

I added the "Edit/Toggle_line_wrap" action to the toolbar in the sdk applet

The icon is missing.

How can I add that?


Posts: 5221

Re: mising toolbar icon

Wed Jul 01, 2015 8:24 am

Hi Scott,

We just don't provide an icon for this specific action (because we never intended it to be added to a toolbar).

But you can create (or copy from some place) your own icon for it and set it to the action before creating a toolbar button from it:

Code: Select all

((javax.swing.AbstractAction)action).putValue(Action.SMALL_ICON, yourCustomIcon);

Or create your own Swing action with your own properties which delegates to our action when actionPerformed is called on it.

Radu Coravu
<oXygen/> XML Editor

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

Who is online

Users browsing this forum: No registered users and 1 guest