begin working on ui - messing around with JSplitPane
This commit is contained in:
parent
184a75752f
commit
5c4d25a846
1 changed files with 18 additions and 1 deletions
|
|
@ -9,7 +9,24 @@ public class MainFrame {
|
||||||
private JFrame frame;
|
private JFrame frame;
|
||||||
|
|
||||||
public void create(short width, short height, boolean fullscreen) {
|
public void create(short width, short height, boolean fullscreen) {
|
||||||
this.frame = new JFrame(I18n.get("MainFrame_Title"));
|
frame = new JFrame(I18n.get("MainFrame_Title"));
|
||||||
|
|
||||||
|
JPanel categoryPanel = new JPanel();
|
||||||
|
JPanel rightPanel = new JPanel();
|
||||||
|
|
||||||
|
JPanel statusPanel = new JPanel();
|
||||||
|
JPanel channelPanel = new JPanel();
|
||||||
|
JSplitPane vsp = new JSplitPane(JSplitPane.VERTICAL_SPLIT, statusPanel, channelPanel);
|
||||||
|
rightPanel.add(vsp);
|
||||||
|
|
||||||
|
JSplitPane hsp = new JSplitPane(JSplitPane.HORIZONTAL_SPLIT, categoryPanel, rightPanel);
|
||||||
|
hsp.setDividerLocation(0.30);
|
||||||
|
frame.add(hsp);
|
||||||
|
|
||||||
|
categoryPanel.add(new JButton("category"));
|
||||||
|
statusPanel.add(new JButton("status"));
|
||||||
|
channelPanel.add(new JButton("channel"));
|
||||||
|
|
||||||
|
|
||||||
if (fullscreen) {
|
if (fullscreen) {
|
||||||
frame.setUndecorated(true);
|
frame.setUndecorated(true);
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue