-1

我的 JToolBar 有问题。它包含许多按钮

纽扣

问题是当我拖动工具栏时,按钮消失了,它的宽度是一个常数“126 pt”,我无法改变尺寸。

问题

拖动时如何更改尺寸“或调整大小”?

4

1 回答 1

1

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.

于 2012-11-01T12:58:13.713 回答