if(e.getSource()==btn1)
{
paragraph=txtAreaArticle.getText();
if (paragraph == "\n\n")
{
return 1 && countPara+1;
txtField1.setText(countPara);
}
}
i wan set count how many paragraph for a article in my textArea. Then the number of paragraph will display on textfield. any one can help me?