changed layout to behave better on resize
This commit is contained in:
parent
f862cb5d38
commit
52c14c4d24
|
@ -43,10 +43,6 @@ public class MainFrame extends JFrame {
|
||||||
});
|
});
|
||||||
|
|
||||||
JScrollPane listScroller = new JScrollPane(jListWall);
|
JScrollPane listScroller = new JScrollPane(jListWall);
|
||||||
listScroller.setPreferredSize(new Dimension(600, 500));
|
|
||||||
|
|
||||||
contentPane.setLayout(new BorderLayout());
|
|
||||||
contentPane.add(listScroller, BorderLayout.WEST);
|
|
||||||
|
|
||||||
Vector<String> states = new Vector<String>();
|
Vector<String> states = new Vector<String>();
|
||||||
states.add("IDLE");
|
states.add("IDLE");
|
||||||
|
@ -78,7 +74,11 @@ public class MainFrame extends JFrame {
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
listScroller = new JScrollPane(jListStates);
|
JScrollPane listScroller2 = new JScrollPane(jListStates);
|
||||||
|
listScroller2.setPreferredSize(new Dimension(150, 500));
|
||||||
|
|
||||||
|
contentPane.setLayout(new BorderLayout());
|
||||||
|
contentPane.add(listScroller2, BorderLayout.EAST);
|
||||||
contentPane.add(listScroller);
|
contentPane.add(listScroller);
|
||||||
|
|
||||||
pack();
|
pack();
|
||||||
|
|
Loading…
Reference in New Issue