Package org.jdesktop.swingx

Examples of org.jdesktop.swingx.URLPainter


        picker.setSelectedFile(new File("/Users/joshy/projects/current/AB5k/src/java/ab5k/desklet/"));
        picker.addActionListener(new ActionListener() {
            public void actionPerformed(ActionEvent actionEvent) {
                try {
                    File file = picker.getSelectedFile();
                    painter = new URLPainter(file);
                    //painter = PainterUtil.loadPainter(file);
                    firePropertyChange();
                    log("loaded the painter: " + painter);
                } catch (Throwable ex) {
                    //System.out.println("error loading the painter: " + ex.getMessage());
View Full Code Here


        }
    }
   
    @Override
    public String getJavaInitializationString() {
        URLPainter painter = (URLPainter)getValue();
        return painter == null ? "null" :
            "new org.jdesktop.swingx.painter.FilePainter(\""+
                painter.getURL().toString()+"\")";
    }
View Full Code Here

TOP

Related Classes of org.jdesktop.swingx.URLPainter

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.