src/net/java/sip/communicator/impl/gui/main/chat/ChatPanel.java
/**
     * Checks if the editor contains text.
     *
     * @return TRUE if editor contains text, FALSE otherwise.
     */
Checks if the editor contains text.
@return TRUE if editor contains text, FALSE otherwise.
Checks if the editor contains text . @return TRUE if editor contains text FALSE otherwise .
public boolean isWriteAreaEmpty()
    {
        JEditorPane editorPane = getChatWritePanel().getEditorPane();
        Document doc = editorPane.getDocument();
        try
        {
            String text = doc.getText(0, doc.getLength());
            if (text == null || text.equals(""))
                return true;
        }
        catch (BadLocationException e)
        {
            logger.error("Failed to obtain document text.", e);
        }
        return false;
    }
public boolean isWriteAreaEmpty ( ) { JEditorPane editorPane = getChatWritePanel ( ) . getEditorPane ( ) ; Document doc = editorPane . getDocument ( ) ; try { String text = doc . getText ( 0 , doc . getLength ( ) ) ; if ( text == null || text . equals ( "" ) ) return true ; } catch ( BadLocationException e ) { logger . error ( "Failed to obtain document text." , e ) ; } return false ; }
Checks if the editor contains text.
Checks if the editor contains text .