网站首页

家园论坛

老版论坛

家园博客

业界新闻

技术文档

下载中心

速查中心

图片中心

硬件资讯
上一篇:Java Socket编程 下一篇:JAVA实现数据采集程序基本原理
高级图像处理图像I/O API RC 1.0

来源: 作者:John Zukowski 添加日期:2006-6-11 8:57:14 点击次数:

                                       if  (returnValue  ==  
                                                 JFileChooser.APPROVE_OPTION)  {
                                           File  selectedFile  =  
                                                       fileChooser.getSelectedFile();
                                             if  (selectedFile  !=  null)  {
                                                   prompt.setText(selectedFile.getAbsolutePath());
                                             }
                                       }
                               }
                       }
               );

               JPanel  outputPanel  =  new  JPanel();
               String  writerFormats[]  =  
                               ImageIO.getWriterFormatNames();
               ComboBoxModel  comboBoxModel  =  new  
                               DefaultComboBoxModel(writerFormats);
               comboBox  =  new  JComboBox(comboBoxModel);
               outputPanel.add(comboBox);
               saveButton  =  new  JButton("Save");
               outputPanel.add(saveButton);
               saveButton.addActionListener(
                       new  ActionListener()  {
                               public  void  actionPerformed(ActionEvent  e)  {

本新闻共8页,当前在第3页  1  2  3  4  5  6  7  8  

 
设为首页 | 加入收藏 | 业务办理 | 友情链接 | 论坛版面 | 浙ICP备07502118号 |