public void setText(String text) {
        if (text.equals("Main Menu")) {
            int i = 9;
        }

        if (!this.isSolidified() && !this.isSolidifying()) {
            this.initialText = text;
            return;
        }

        this.text = text;

        if (text.length() > maxChars) {
            for (int i = 0; i < maxChars - 3; i++) {
                ((CharComponent)this.getSubComponent(i)).setCharacter(text.charAt(i));
            }
            ((CharComponent)this.getSubComponent(this.getNumSubComponents() - 3)).setCharacter('.');
            ((CharComponent)this.getSubComponent(this.getNumSubComponents() - 2)).setCharacter('.');
            ((CharComponent)this.getSubComponent(this.getNumSubComponents() - 1)).setCharacter('.');
        }
        else {
            int i;
            for (i = 0; i < text.length(); i++) {
                ((CharComponent)this.getSubComponent(i)).setCharacter(text.charAt(i));
            }
            while (i < maxChars) {
                this.getSubComponent(i).setVisible(false);

                i++;
            }
        }

        numCurrentCharacters = Math.min(text.length(), maxChars);

        needsAligned = true;
    }