2

我正在使用 Miglayout 向面板添加一个按钮,并尝试我可能的方法,但我无法让它转到面板的右端。它坚持向左冲洗。奇怪的是,该演示在示例中有点短(它仅在同一面板上的其他按钮的上下文中显示它。

我有一个这样的面板:

    dialog
      ->complex display retrieved from another class
                                               OK Button here.

除了它总是坚持这样写:

    dialog
      ->complex display retrieved from another class
    OK Button here.
4

2 回答 2

4

好的,我(终于)得到了答案。添加包含按钮的面板时,添加“gapbefore push”的组件约束。我一直在尝试,但只在按钮本身上,而不是面板上。

于 2010-07-14T16:59:13.133 回答
1

panel.add(button, "skip(the amount of cells you have), al 100%")

于 2013-07-25T02:58:17.040 回答