java joptionpanel详细用法
JOptionPane.showMessageDialog(Component parentComponent,
Object message,
String title,
int messageType)
parentComponent - 确定在其中显示对话框的 Frame;如果为 null 或者 parentComponent 不具有 Frame,则使用默认的 Frame
message - 要显示的 Object
title - 对话框的标题字符串
messageType - 要显示的消息类型:ERROR_MESSAGE、INFORMATION_MESSAGE、WARNING_MESSAGE、QUESTION_MESSAGE 或 PLAIN_MESSAGE
java问题JFrame,JPanel,Container三者有什么区别
JPanel包含于JFrame之中 Container是容器 包含所有组建的类一般开发你可以不考虑Container 直接在JFrame上操作 要用可以通过方法 好像是getContainer()(具体自己查下API 反正我没怎么用到过)一个JFrame可以包含多个JPanel 一个作为基础的内容面板 用setContentPane() 设置

