vTextArea = new Vector();  TextArea ta = new TextArea("", 40, 25, TextArea.SCROLLBARS_VERTICAL_ONLY); ta.setEditable(false); vTextArea.addElement(ta); tabs.add("Phase", ta);
resetTabs();
    public ReportDisplay(Client client) {        this.client = client;        client.game.addGameListener( this );//         cb = client.cb;        // Create a tabbed panel to hold our reports.        tabs = new TabPanel();        //debugReport: add new client setting        Font tabPanelFont = new Font ("Helvetica",Font.BOLD, //$NON-NLS-1$         GUIPreferences.getInstance().getInt("AdvancedChatLoungeTabFontSize"));        tabs.setTabFont (tabPanelFont);        vTextArea = new Vector();        /* HACK: Without this initial empty TextArea, the tabs will be           blank (no TextArea at all) during the first initiative           phase.  I think it has something to do with the layout           manager, but I'm not really sure.  Maybe a strategically           placed validate() would be better? */        TextArea ta = new TextArea("", 40, 25, TextArea.SCROLLBARS_VERTICAL_ONLY);        ta.setEditable(false);        vTextArea.addElement(ta);        tabs.add("Phase", ta);        setupStatusBar( "" ); //$NON-NLS-1$                readyB = new Button(Messages.getString("ReportDisplay.Done")); //$NON-NLS-1$        readyB.setActionCommand("ready"); //$NON-NLS-1$        readyB.addActionListener(this);                rerollInitiativeB = new Button(Messages.getString("ReportDisplay.Reroll")); //$NON-NLS-1$        rerollInitiativeB.setActionCommand("reroll_initiative"); //$NON-NLS-1$        rerollInitiativeB.addActionListener(this);                // layout screen        GridBagLayout gridbag = new GridBagLayout();        GridBagConstraints c = new GridBagConstraints();        setLayout(gridbag);                c.fill = GridBagConstraints.BOTH;        c.weightx = 1.0;    c.weighty = 1.0;        c.insets = new Insets(1, 1, 1, 1);        c.gridwidth = GridBagConstraints.REMAINDER;        addBag(tabs, gridbag, c);//         c.gridwidth = 1;//         c.weightx = 1.0;    c.weighty = 0.0;//         addBag(cb.getComponent(), gridbag, c);        c.gridwidth = 1;        c.weightx = 0.0;    c.weighty = 0.0;        Panel panButtons = new Panel();        panButtons.setLayout( new GridLayout(1, 8) );        panButtons.add(rerollInitiativeB);        for ( int padding = 0; padding < 6; padding++ ) {            panButtons.add( new Label( "" ) ); //$NON-NLS-1$        }        addBag( panButtons, gridbag, c );//         c.weightx = 1.0;    c.weighty = 0.0;//         c.gridwidth = GridBagConstraints.REMAINDER;//         addBag(panStatus, gridbag, c);//         c.gridwidth = GridBagConstraints.REMAINDER;//         c.weightx = 0.0;    c.weighty = 0.0;//         addBag(readyB, gridbag, c);        addKeyListener(this);            }