Java中的学校项目GUI

时间:2016-04-06 12:48:02

标签: java user-interface interface

我目前正在开展涉及停车场的学校项目。我们目前有一个模拟器工作,但由于某种原因,我似乎无法修复GUI。请注意,这是我有史以来第一个Java项目,而且我一般都是编程新手。

This is how the GUI currently look like, obviously it's not looking like it's supposed to look. My idea was that the buttons are beneath the simulator grid and are alot smaller than they are now.

return (
    <div>
        <button onClick={this.setNewTarget}>
            Highlight random country
        </button>
        {listItems}
    </div>
);

1 个答案:

答案 0 :(得分:1)

根据您的约束,您要使用BorderLayout。但是您没有将BorderLayout设置为布局管理器。在您的内容面板上setLayout(new BorderLayout())