Buttons disappear from the JToolbar when I drag it

384 Views Asked by At

I'm having problem with my JToolBar. It contains many buttons

buttons

The problem is that when I drag the toolbar, the buttons disappear and its width is a constant "126 pt" that I can not change in the dimensions.

problem

How can I change the dimensions "or resize" it when I drag it?

1

There are 1 best solutions below

1
On

Window that appears when toolbar is being dragged takes its size from JToolbar preferred size. It seems that you have hardcoded its size or you have some incorrect layout that gives a wrong preferred width.

Anyway, i cannot say anything more specififc without seeing the code that presents this problem.