public void mechReadout() {
private void mechReadout() {
    public void mechReadout() {        if (lisEntities.getSelectedIndex() == -1) {            return;        }        Entity entity = client.game.getEntity(entityCorrespondance[lisEntities.getSelectedIndex()]);        MechView mechView = new MechView(entity);        JTextArea ta = new JTextArea();        ta.setEditable(false);        ta.setFont(new Font("Monospaced", Font.PLAIN, 12)); //$NON-NLS-1$        ta.setText(mechView.getMechReadout());        final JDialog dialog = new JDialog(clientgui.frame, Messages.getString("ChatLounge.quickView"), false); //$NON-NLS-1$        JButton btn = new JButton(Messages.getString("Okay")); //$NON-NLS-1$        dialog.add("South", btn); //$NON-NLS-1$        btn.addActionListener(new ActionListener() {            public void actionPerformed(ActionEvent e) {                dialog.setVisible(false);            }        });        dialog.addWindowListener(new WindowAdapter() {            public void windowClosing(WindowEvent e) {                dialog.setVisible(false);            }        });        dialog.add("Center", ta); //$NON-NLS-1$        // Preview image of the Mech...        JLabel panPreview = new JLabel();        panPreview.setPreferredSize(new Dimension(84, 72));        clientgui.loadPreviewImage(panPreview, entity);        dialog.add("North", panPreview); //$NON-NLS-1$        dialog.setLocation(clientgui.frame.getLocation().x + clientgui.frame.getSize().width / 2 - dialog.getSize().width / 2,                clientgui.frame.getLocation().y + clientgui.frame.getSize().height / 5 - dialog.getSize().height / 2);        dialog.setSize(300, 450);        dialog.validate();        dialog.setVisible(true);    }