swing Java+Miglayout最高利润边界问题?
我对保证金有意见。也许这很容易解决,但我不知道原因是什么。我有四个组件,三个JScrollPanel和一个jpanel。组件的放置方式如下:
问题用红色椭圆标记。如何消除这种差距?我知道,这个问题与边界有关(即使我用相同的方法为每个组件创建边界)。我在用这个:
setBorder(BorderFactory.createTitledBorder("Sterowanie:"));
但当我没有为JPanel(标签为“Sterowanie”的组件)设置边界时,它会填充所有的地方,没有边界。有了边界,它只填充了一个边界区域。我用来放置组件的代码:
proxys = new ItemViewer("Numery:");
add(proxys, "height 65%, width 33%");
accs = new ItemViewer("Konta:");
add(accs, "height 65%, width 33%");
panel = new JPanel();
panelLayout = new MigLayout("insets 0 0 0 0");
panel.setBorder(BorderFactory.createTitledBorder("Sterowanie:"));
add(panel, "height 65%, width 34%, wrap");
log = new Log("Log:");
add(log, "height 35%, width 100%, span");
嗯
共 (0) 个答案