隨筆 - 154  文章 - 60  trackbacks - 0
          <2014年12月>
          30123456
          78910111213
          14151617181920
          21222324252627
          28293031123
          45678910

          聲明:

          該blog是為了收集資料,認(rèn)識(shí)朋友,學(xué)習(xí)、提高技術(shù),所以本blog的內(nèi)容除非聲明,否則一律為轉(zhuǎn)載!!

          感謝那些公開自己技術(shù)成果的高人們!!!

          支持開源,尊重他人的勞動(dòng)!!

          常用鏈接

          留言簿(3)

          隨筆分類(148)

          隨筆檔案(143)

          收藏夾(2)

          其他

          學(xué)習(xí)(技術(shù))

          觀察思考(非技術(shù))

          搜索

          •  

          最新評(píng)論

          閱讀排行榜

          評(píng)論排行榜

          Informational dialog with default title and icon
          //default title and icon
                      JOptionPane.showMessageDialog(frame,
                      "Eggs are not supposed to be green.",
                      "Message");
                      
          Informational dialog with custom title, warning icon
          //custom title, warning icon
                      JOptionPane.showMessageDialog(frame,
                      "Eggs are not supposed to be green.",
                      "Inane warning",
                      JOptionPane.WARNING_MESSAGE);
                      
          Informational dialog with custom title, error icon
          //custom title, error icon
                      JOptionPane.showMessageDialog(frame,
                      "Eggs are not supposed to be green.",
                      "Inane error",
                      JOptionPane.ERROR_MESSAGE);
                      
          Informational dialog with custom title, no icon
          //custom title, no icon
                      JOptionPane.showMessageDialog(frame,
                      "Eggs are not supposed to be green.",
                      "A plain message",
                      JOptionPane.PLAIN_MESSAGE);
                      
          Informational dialog with custom title, custom icon
          //custom title, custom icon
                      JOptionPane.showMessageDialog(frame,
                      "Eggs are not supposed to be green.",
                      "Inane custom dialog",
                      JOptionPane.INFORMATION_MESSAGE,
                      icon);
                      

           

           

          更多:http://java.sun.com/docs/books/tutorial/uiswing/components/dialog.html

          posted on 2007-10-26 14:31 lk 閱讀(17418) 評(píng)論(3)  編輯  收藏 所屬分類: j2se

          FeedBack:
          # re: javax.swing.JOptionPane.showMessageDialog() 方法  2008-03-17 09:17 gaogao
          # re: javax.swing.JOptionPane.showMessageDialog() 方法 [未登錄] 2011-06-07 20:00 java
          不錯(cuò)  回復(fù)  更多評(píng)論
            
          # re: javax.swing.JOptionPane.showMessageDialog() 方法  2014-12-10 00:42 fjfjtu
          主站蜘蛛池模板: 南岸区| 团风县| 武山县| 伊吾县| 嘉义市| 华池县| 秀山| 通辽市| 图片| 临高县| 秭归县| 赤壁市| 浦北县| 喀喇沁旗| 隆化县| 德令哈市| 湘阴县| 多伦县| 湛江市| 额济纳旗| 乌拉特中旗| 沂南县| 大厂| 遂平县| 广汉市| 鄂尔多斯市| 潍坊市| 铜梁县| 方正县| 封丘县| 梅州市| 平原县| 潍坊市| 岱山县| 南昌县| 滨海县| 绥中县| 平利县| 拉孜县| 霞浦县| 阿鲁科尔沁旗|