完成这种弹出窗口的基本方法是使用JOptionPane.showMessageDialog,请参见此处.
JOptionPane.showMessageDialog(frame, "here comes the text.");
// assumes frame to be a reference to the desired parent frame
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
5387 次 |
| 最近记录: |