I have toolbar with random number of buttons from two up to twenty. Width of each button can vary.
I have to put them all at top area and use JToolBar. On a small screen resolutions (e.g. 800x600) some buttons could be out of screen (AFAIK JToolbar can't grows in a height).
Any ideas how to adjust JToolbar to grows in a height or resolve the task in any other way (e.g. using Flowlayout)?
I am not sure if this might be helpful, how about you use a ribbonbar instead? That way, it is less complicated for the user (if you have more than ~7 buttons) and seems efficient. To implementation goes as follows (an example on the fly): create a
JTabbedPaneand add the following tabs File, Edit, Help. In File, have New Project, Open, Save, Save As... in Edit, have Copy, Paste, etc.. and so on.