/** *//** Creates new form JXImageVIewTest */ public JXImageVIewTest() ...{ initComponents(); try...{ jXImageView1.setImage(new File("D:/z.ico")); }catch (IOException ex) ...{ ex.printStackTrace(); } }
/** *//** This method is called from within the constructor to * initialize the form. * WARNING: Do NOT modify this code. The content of this method is * always regenerated by the Form Editor. */ // <editor-fold defaultstate="collapsed" desc=" 生成的代码 "> privatevoid initComponents() ...{ jXImagePanel1 =new org.jdesktop.swingx.JXImagePanel(); jXImageView1 =new org.jdesktop.swingx.JXImageView();