可以用这个阿
public static void showMessageDialog(Component parent,Object message,String title,int messagetype,Icon icon)
是这个意思么?
public static void showMessageDialog(Component parent,Object message,String title,int messagetype,Icon icon)
是这个意思么?
解决方案 »
- 求助啊,连不上java连不上sql sever 2008
- 寻 JNI高手帮忙解决一个问题,万分感谢!
- [求助]:swt其他线程改变组件内容(如何非阻塞的判断线程池结束)
- Java桌面程序安装部署方案
- 大虾们快帮我看看.
- 小问题
- 请教:jButton的方法setEnabled()是设置按钮可用否,而判断某按钮可用否应该用什么方法呢?
- 新手提问:Exception in thread "main" java.lang.NoSuchMethodError: main是什么意思?
- 在看JAVA2核心技术(第6版)的上册(机械工业出版社)的朋友请进来
- 出现这个提示是什么意思??!!!!!
- 关于线程调度
- 关于java的访问控制和继承,这段话怎么理解?
import javax.swing.JOptionPane;
public class applit {
public static void main(String args[]) {
String alpha = "asdflkaodsdjfa";
JOptionPane.showMessageDialog(null, alpha);
System.exit(0);
}
}
我不希望消息框上面的java图标和那个蓝体圆框i显示出来
我只要取消它们就行,并不需要其它的,该如何做?
如果需要自己编写新CLASS,请给点代码
JOptionPane.showMessageDialog( null, "This is a test", "Title",
JOptionPane.PLAIN_MESSAGE );
JOptionPane pane = new JOptionPane( "This is a test",
JOptionPane.PLAIN_MESSAGE );
JDialog dialog = pane.createDialog( null, "Title" );
dialog.setResizable( false );
dialog.show();
Font f = new Font( "Serif", Font.ITALIC, 36 );
JLabel label = new JLabel( "This is a test." );
label.setFont( f );
JOptionPane pane = new JOptionPane( label,
JOptionPane.PLAIN_MESSAGE );
JDialog dialog = pane.createDialog( null, "Title" );
dialog.setResizable( false );
dialog.show();