隨筆 - 154  文章 - 60  trackbacks - 0
          <2008年3月>
          2425262728291
          2345678
          9101112131415
          16171819202122
          23242526272829
          303112345

          聲明:

          該blog是為了收集資料,認識朋友,學習、提高技術,所以本blog的內容除非聲明,否則一律為轉載!!

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

          支持開源,尊重他人的勞動!!

          常用鏈接

          留言簿(3)

          隨筆分類(148)

          隨筆檔案(143)

          收藏夾(2)

          其他

          學習(技術)

          觀察思考(非技術)

          搜索

          •  

          最新評論

          閱讀排行榜

          評論排行榜

          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 閱讀(17419) 評論(3)  編輯  收藏 所屬分類: j2se

          FeedBack:
          # re: javax.swing.JOptionPane.showMessageDialog() 方法  2008-03-17 09:17 gaogao
          3Q  回復  更多評論
            
          # re: javax.swing.JOptionPane.showMessageDialog() 方法 [未登錄] 2011-06-07 20:00 java
          不錯  回復  更多評論
            
          # re: javax.swing.JOptionPane.showMessageDialog() 方法  2014-12-10 00:42 fjfjtu
          hdyjrt  回復  更多評論
            
          主站蜘蛛池模板: 微山县| 剑川县| 庆安县| 嘉禾县| 巴青县| 南投市| 沙河市| 新巴尔虎右旗| 黄山市| 桐乡市| 宁晋县| 南澳县| 嘉定区| 本溪市| 芦山县| 蕉岭县| 图们市| 泾源县| 惠州市| 土默特右旗| 满城县| 贞丰县| 大化| 河曲县| 城口县| 名山县| 民勤县| 镇原县| 奉节县| 兴仁县| 疏附县| 凤翔县| 班玛县| 旺苍县| 年辖:市辖区| 区。| 德江县| 阜平县| 潞西市| 睢宁县| 横山县|