Page 1 of 1

Toolbar width

Posted: Tue Oct 08, 2013 9:52 pm
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?

Re: Toolbar width

Posted: Wed Oct 09, 2013 11:46 am
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