public void init(Object text)
    {
        this.setOpaque(false);
        this.setPreferredSize(PREFERRED_SIZE);
        int rows = 1;
        int cols = 30;
        m_control = new JTextArea(rows, cols);
        m_control.setBorder(null);      // No border inside a scroller.
        JScrollPane scrollpane = new JScrollPane(m_control, ScrollPaneConstants.VERTICAL_SCROLLBAR_AS_NEEDED, ScrollPaneConstants.HORIZONTAL_SCROLLBAR_AS_NEEDED);
        this.setLayout(new BorderLayout());
        this.add(scrollpane);
        this.setControlValue(text);
        m_control.addKeyListener(this);
    }
public void init ( Object text ) { this . setOpaque ( false ) ; this . setPreferredSize ( PREFERRED_SIZE ) ; int rows = 1 ; int cols = 30 ; m_control = new JTextArea ( rows , cols ) ; m_control . setBorder ( null ) ; JScrollPane scrollpane = new JScrollPane ( m_control , ScrollPaneConstants . VERTICAL_SCROLLBAR_AS_NEEDED , ScrollPaneConstants . HORIZONTAL_SCROLLBAR_AS_NEEDED ) ; this . setLayout ( new BorderLayout ( ) ) ; this . add ( scrollpane ) ; this . setControlValue ( text ) ; m_control . addKeyListener ( this ) ; }
Creates new JThreeStateCheckBox.
@param text The checkbox description.