Package org.jdesktop.swingx.hyperlink

Examples of org.jdesktop.swingx.hyperlink.LinkModel


    // PENDING JW: formulate with HyperlinkAction
    public static class LinkBrowser implements ActionListener {

        public void actionPerformed(ActionEvent e) {
            if (e.getSource() instanceof LinkModel) {
                final LinkModel link = (LinkModel) e.getSource();
                try {
                    Desktop desktop = Desktop.getDesktop();
                    desktop.browse(link.getURL().toURI());
                    link.setVisited(true);
                } catch (Exception e1) {
                    // TODO: error handling
                }
            }
View Full Code Here

TOP

Related Classes of org.jdesktop.swingx.hyperlink.LinkModel

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.