Toolbar width

Are you missing a feature? Request its implementation here.
AlGor
Posts: 4
Joined: Wed Sep 11, 2013 7:19 pm

Toolbar width

Post by AlGor »

Hi!

I have faced situation, when Main toolbar does not fit the visible region.
So some menu Items will be cutted, and user have no opportunities to press them.

:arrow: Some screenshots will help you to understand what I'm asking about.
Image

Image

:idea: What would be nice is to have some scroll, or dynamically move items to other row,
or splitbutton with items that are not visible. Or any alternative solution. :)


:?: Or, I've missed something, and there is a workaround?
Radu
Posts: 9045
Joined: Fri Jul 09, 2004 5:18 pm

Re: Toolbar width

Post by Radu »

Hi Alexey,

You have full control over the way in which the Swing toolbar is created in ro.sync.ecss.samples.AuthorComponentSample.reconfigureActionsToolbar() so you could try to create two toolbars vertically stacked in a JPanel instead of one. Unfortunately the Swing JToolbar does not seem to have a default behavior which would show chevrons when buttons fail to fit in them.
You can google "jtoolbar wrap" for more ideas, I'll also look on my side, see if I can find anything which is easy to implement and which would wrap the toolbar on multiple lines.

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