Examples of JXHyperlink


Examples of org.jdesktop.swingx.JXHyperlink

        SwingUtilities.invokeLater(new Runnable() {

            public void run() {
                removeAll();
                for (int i = 0; i < height; i++) {
                    JXHyperlink label = new JXHyperlink();
                    label.setText("Level " + i);
                    if (i == lvl) {
                        label.setFont(label.getFont().deriveFont(Font.BOLD));
                    }
                    label.putClientProperty(LABEL_KEY, new Integer(i));
                    label.addActionListener(LevelPanel.this);
                    add(label, "wrap");
                }
            }
        });
    }

Examples of org.jdesktop.swingx.JXHyperlink

    private void initAction() {
        openAction = new AbstractAction("", ImageUtilities.loadImageIcon("org/gephi/desktop/welcome/resources/gephifile20.png", false)) {

            @Override
            public void actionPerformed(ActionEvent e) {
                JXHyperlink link = (JXHyperlink) e.getSource();
                File file = (File) link.getClientProperty(LINK_PATH);
                FileObject fileObject = FileUtil.toFileObject(file);
                if (fileObject.hasExt(GEPHI_EXTENSION)) {
                    ProjectControllerUI pc = Lookup.getDefault().lookup(ProjectControllerUI.class);
                    try {
                        pc.openProject(file);

Examples of org.jdesktop.swingx.JXHyperlink

        migLayout1.setColumnConstraints("[pref]");
        recentPanel.setLayout(migLayout1);

        MostRecentFiles mru = Lookup.getDefault().lookup(MostRecentFiles.class);
        for (String filePath : mru.getMRUFileList()) {
            JXHyperlink fileLink = new JXHyperlink(openAction);
            File file = new File(filePath);
            if (file.exists()) {
                fileLink.setText(file.getName());
                fileLink.putClientProperty(LINK_PATH, file);
                recentPanel.add(fileLink, "wrap");
            }
        }
    }

Examples of org.jdesktop.swingx.JXHyperlink

                String s = samplePath[i];
                String tooltip = sampleTooltip[i];
                final InputStream stream = WelcomeTopComponent.class.getResourceAsStream(s);
                String fileName = s.substring(s.lastIndexOf('/') + 1, s.length());
                final String importer = fileName.substring(fileName.lastIndexOf('.'), fileName.length());
                JXHyperlink fileLink = new JXHyperlink(new AbstractAction() {

                    @Override
                    public void actionPerformed(ActionEvent e) {
                        try {
                            stream.reset();
                        } catch (IOException ex) {
                            //Exceptions.printStackTrace(ex);
                        }
                        ImportControllerUI importController = Lookup.getDefault().lookup(ImportControllerUI.class);
                        importController.importStream(stream, importer);
                        closeDialog();
                    }
                });
                fileLink.setText(fileName);
                fileLink.setToolTipText(tooltip);
                fileLink.putClientProperty(LINK_PATH, importer);
                samplesPanel.add(fileLink, "wrap");
            }
        } catch (Exception ex) {
            Exceptions.printStackTrace(ex);
        }

Examples of org.jdesktop.swingx.JXHyperlink

            }
           
        });
        descriptionPane.addHyperlinkListener(linkListener);   
        readMoreLinkAction = createReadMoreLink();
        descriptionContainer.addRightDecoration(new JXHyperlink(readMoreLinkAction));
    }

Examples of org.jdesktop.swingx.JXHyperlink

          public void mousePressed(MouseEvent me) {
            openAction.actionPerformed(null);
          }
        });                
               
        JXHyperlink link = new JXHyperlink(openAction);
        link.setText(title);
       
        itemPanel.add(lblItem, BorderLayout.NORTH);
        itemPanel.add(link, BorderLayout.SOUTH);
       
        return itemPanel;

Examples of org.jdesktop.swingx.JXHyperlink

                + I18n.CUSTOMERS.getString("App.Version"));
        JLabel lblCopyright = new JLabel(I18n.CUSTOMERS.getString("App.Copyright"));
        JLabel lblCopyrightLink = new JLabel("www.devsniper.com.");

        JLabel lblDetails = new JLabel(I18n.CUSTOMERS.getString("App.Details"));
        JXHyperlink xlinkBlog = new JXHyperlink(acBlog);
        JXHyperlink xlinkSourceCode = new JXHyperlink(acSourceCode);
       
        JLabel lblIcons = new JLabel(I18n.CUSTOMERS.getString("App.Icons"));

        centerPanel.add(lblAppName, "wrap");
        centerPanel.add(lblCopyright, "wrap");
TOP
Copyright © 2018 www.massapi.com. 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.