|
@ -29,9 +29,9 @@ public class ChatClient extends JFrame implements KeyListener { |
|
|
|
|
|
|
|
|
setContentPane(root); |
|
|
setContentPane(root); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
jScrollPane = new JScrollPane( JScrollPane.VERTICAL_SCROLLBAR_ALWAYS, JScrollPane.HORIZONTAL_SCROLLBAR_AS_NEEDED); |
|
|
|
|
|
jScrollPane.setPreferredSize(new Dimension(300, 500)); |
|
|
|
|
|
root.add(jScrollPane); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
private JPanel setupPanel(String header) { |
|
|
private JPanel setupPanel(String header) { |
|
|