I have:
JFrame frame;
JComponent screen;
JTextField chatbox;
Container pane = frame.getContentPane();
pane.add(screen,BorderLayout.CENTER);
pane.add(chatbox,BorderLayout.SOUTH);
The screen draws the graphics and I want the chatbox to pop up at the bottom whenever the user presses enter.
I originally call chatbox.setVisible(false) during the initialization. But, later when I call chatbox.setVisible(true) it does not show up. I dont have to call pack() on the frame every time right?