Handle JButton click event in another class

后端 未结 3 1743
[愿得一人]
[愿得一人] 2021-01-12 10:47

I\'m new to java coming from C# so I\'m not familiar with java best practices.

I have a main class that opens a JFrame to get several input strings from a user. When

3条回答
  •  北海茫月
    2021-01-12 11:20

    Also consider using JOptionPane, shown here, in your Main class. You can customize the appearance, including button text, as shown in How to Make Dialogs.

提交回复
热议问题