UserMenu jm = new UserMenu(this, true);
utm = new ChatUserTableModel("user", userData);
jta = utm.createJTable();
utm.addTableModelListener(this);
MouseListener ml = new PopupListener(jm);
jta.addMouseListener(ml);
jta.setShowGrid(false);
JScrollPane jsp = new JScrollPane(jta);
jpUsers.add(jsp, BorderLayout.CENTER);
//jta.setPreferredScrollableViewportSize(new Dimension(250, 200));
// server label
JPanel jpServer = new JPanel(new BorderLayout());
jpServer.setBorder(new EmptyBorder(5, 5, 5, 5));
jlServer = new JLabel(" ");
jpServer.add(jlServer, BorderLayout.CENTER);
jpUsers.add(jpServer, BorderLayout.SOUTH);
// input
Box boxBottom = new Box(BoxLayout.X_AXIS);
jteInput = new HistoryTextField("", 20);
jteInput.getInputMap().put
(KeyStroke.getKeyStroke(KeyEvent.VK_ENTER, 0), acSend);
boxBottom.add(jteInput);
boxBottom.add(Box.createHorizontalStrut(5));
jcbServerIsSticky = new JCheckBox(XNap.tr("Sticky"));
boxBottom.add(jcbServerIsSticky);
jcbServers = new JComboBox();
jcbServers.setRenderer(new ChatServerCellRenderer());
boxBottom.add(jcbServers);
boxBottom.add(new JButton(acSend));
// popup menu
JPopupMenu popupMenu = new JPopupMenu();
saveChatLogAction = new SaveChatLogAction();
popupMenu.add(new JMenuItem(saveChatLogAction));
cpChat.getTextPane().addMouseListener(new PopupListener(popupMenu));
// split pane
jspH = new JSplitPane(JSplitPane.HORIZONTAL_SPLIT);
jspH.add(cpChat, JSplitPane.LEFT);