I have a query: What would be the way to refresh (not duplicate / accumulate) the text of a JtextArea by pressing a button? - For example, pressing the "View Result" button several times, the information is added or duplicated in the textArea. - in the same way if I do it from a JComboBox, when I change the item, it shows me information in the textarea but it does not eliminate the information of the previous selected item or by alternating between the JcomboBox options. Thanks for the help.