Now I am involving a java project in campus. That is using swing. We are using netbeans as ide. In my JFrame I drop a JTextArea. I have to change that's size accordingly user input. I try all the methods setMinimumSize, setPreferedSize, etc...But I coudn't see any change in width and height of jTexArea. How can i do this task? pls help me. Because i dont have much programming experience with java.