zoukankan      html  css  js  c++  java
  • javax.swing.JOptionPane.showMessageDialog() 方法

     //default title and icon           

    javax.swing.JOptionPane.showMessageDialog() 方法 - 再见理想 - 再见理想 

    JOptionPane.showMessageDialog(frame,"Eggs are not supposed to be green.","Message");             

    //custom title, warning icon 

    javax.swing.JOptionPane.showMessageDialog() 方法 - 再见理想 - 再见理想 

    JOptionPane.showMessageDialog(frame,"Eggs are not supposed to be green.", "Inane warning",JOptionPane.WARNING_MESSAGE);   

    //custom title, error icon 

    javax.swing.JOptionPane.showMessageDialog() 方法 - 再见理想 - 再见理想 

    JOptionPane.showMessageDialog(frame,"Eggs are not supposed to be green.", "Inane error",JOptionPane.ERROR_MESSAGE); 


    //custom title, no icon 

    javax.swing.JOptionPane.showMessageDialog() 方法 - 再见理想 - 再见理想       
    JOptionPane.showMessageDialog(frame,"Eggs are not supposed to be green.","A plain message", JOptionPane.PLAIN_MESSAGE); 

    //custom title, custom icon 
    javax.swing.JOptionPane.showMessageDialog() 方法 - 再见理想 - 再见理想             

    JOptionPane.showMessageDialog(frame, "Eggs are not supposed to be green.", "Inane custom dialog", JOptionPane.INFORMATION_MESSAGE,icon);

  • 相关阅读:
    rabbitmq
    mysql
    redis
    vue整理
    crawlspider和中间件
    日志等级与请求传参
    Scrapy框架初级篇
    验证码操作
    图片懒加载、selenium&phantomjs
    《信息安全系统设计基础》 第二周学习总结
  • 原文地址:https://www.cnblogs.com/shy1766IT/p/3032168.html
Copyright © 2011-2022 走看看