Finally, we use the setText() method to change the text on the button to "New text". When you run this code, you will see a JFrame with a button ...
確定! 回上一頁