zoukankan      html  css  js  c++  java
  • paip.提升效率--gui 的选择--swing最佳实践swt awt


    paip.提升效率--gui 的选择--swing最佳实践swt awt

    ////////////////弹出消息框.
    ////////////////myeclipse swing 开发最佳实践..
    ////////////// 新的窗体..new form
    ////////////////显示图片.
    ///////////////////byte 数组转换图片..

     JOptionPane.showMessageDialog(null, s, "标题条文字串", JOptionPane.DEFAULT_OPTION);

    想要swt,麻烦,新的ide,下载。。组哈。。SWING雅十容易的着了..
    myeclipse7>new >eclipse > matisse form
    app lication form : have default menu bar in top
    jframe: normol  form...


    ////double clieck button ,write event code
        private void jButton1ActionPerformed(java.awt.event.ActionEvent evt) {
            atiwrap.filemode=false;
         //    atiwrap.test=true;
            String s=atiwrap.getResult("http://icode.renren.com/getcode.do?t=web_reg&rnd=1395024427820");
          ImageIcon img=    imgx.toImg(atiwrap.by);
          jLabel2.setIcon(img);
            // System.out.println("识别结果:"+s)
             JOptionPane.showMessageDialog(null, s, "标题条文字串", JOptionPane.DEFAULT_OPTION);
        }
        
        
        jButton1.addActionListener(new java.awt.event.ActionListener() {
                public void actionPerformed(java.awt.event.ActionEvent evt) {
                    jButton1ActionPerformed(evt);
                }
            });

    作者Attilax  艾龙, EMAIL:1466519819@qq.com
    来源:attilax的专栏
    地址:http://blog.csdn.net/attilax

  • 相关阅读:
    POJ3094 UVALive3594 HDU2734 ZOJ2812 Quicksum【进制】
    UVALive5583 UVA562 Dividing coins
    POJ1979 HDU1312 Red and Black【DFS】
    POJ1979 HDU1312 Red and Black【DFS】
    POJ2386 Lake Counting【DFS】
    POJ2386 Lake Counting【DFS】
    HDU4394 Digital Square
    HDU4394 Digital Square
    UVA213 UVALive5152 Message Decoding
    UVA213 UVALive5152 Message Decoding
  • 原文地址:https://www.cnblogs.com/attilax/p/5964050.html
Copyright © 2011-2022 走看看