changed layout to behave better on resize

This commit is contained in:
Lucas Pleß 2012-06-15 10:39:04 +02:00
parent f862cb5d38
commit 52c14c4d24
1 changed files with 5 additions and 5 deletions

View File

@ -43,10 +43,6 @@ public class MainFrame extends JFrame {
});
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>();
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);
pack();