Examples of HyperlinkLabel


Examples of com.dcaiti.eworld.visualizer.utilities.HyperlinkLabel

    topPanel.add(versionLabel, BorderLayout.CENTER);

    osLabel = new JLabel(getOSName());
    copyrightLabel = new JLabel("Copyright (c) 2011");
    dcaitiLabel = new JLabel("Daimler Center for Automotive Information Technology Innovations (DCAITI)");
    dcaitiLinkLabel = new HyperlinkLabel(
        "<html><a href=\"http://www.dcaiti.com\">http://www.dcaiti.com</a></html>\"",
        new HyperlinkLabel.OnClick() {

          @Override
          public void onClickDo(final MouseEvent me) {
            if (Desktop.isDesktopSupported()) {
              final Desktop desktop = Desktop.getDesktop();
              try {
                desktop.browse(new URI("http://www.dcaiti.com"));
              } catch (final Exception e) {
                e.printStackTrace();
              }
            }
          }

        });
    creditsLabel = new JLabel("Credits: Map Icons Collection");
    creditsLinkLabel = new HyperlinkLabel(
        "<html><a href=\"http://mapicons.nicolasmollet.com\">http://mapicons.nicolasmollet.com</a></html>\"",
        new HyperlinkLabel.OnClick() {

          @Override
          public void onClickDo(final MouseEvent me) {
View Full Code Here

Examples of com.intellij.ui.HyperlinkLabel

            }
        });
    }

    public HyperlinkLabel createActionLabel(final String text, final Runnable action) {
        HyperlinkLabel label = new HyperlinkLabel(text, PlatformColors.BLUE, getBackground(), PlatformColors.BLUE);
        label.addHyperlinkListener(new HyperlinkAdapter() {
            @Override
            protected void hyperlinkActivated(HyperlinkEvent e) {
                action.run();
            }
        });
View Full Code Here

Examples of com.intellij.ui.HyperlinkLabel

    @NotNull
    @Override
    protected JComponent createEditor() {
      FormBuilder builder = new FormBuilder();

      myRevealNotFoundOrIncompatible = new HyperlinkLabel();
      myRevealNotFoundOrIncompatible.setIcon(AllIcons.RunConfigurations.ConfigurationWarning);
      myRevealNotFoundOrIncompatible.setHyperlinkTarget("http://revealapp.com");

      myNotAvailable = new JBLabel("<html>" +
                                   "Reveal integration is only available for iOS applications.<br>" +
View Full Code Here

Examples of com.intellij.ui.HyperlinkLabel

  }

  @NotNull
  private static JComponent createInformationPanel(@NotNull final String adapterHomePageUrl) {
    JLabel label1 = new JLabel("See");
    HyperlinkLabel hyperlink = SwingHelper.createWebHyperlink(adapterHomePageUrl);

    JLabel label2 = new JLabel("for details.");

    JPanel panel = SwingHelper.newHorizontalPanel(
      Component.BOTTOM_ALIGNMENT,
View Full Code Here

Examples of com.intellij.ui.HyperlinkLabel

        jdCoreVersionLabel = new JLabel("JD-Core " + javaDecompilerService.getVersion());
        jd_hyperlinkLabel = createHyperLinkLabelWithURL("http://en.wikipedia.org/wiki/Java_Decompiler");
    }

    private HyperlinkLabel createHyperLinkLabelWithURL(String link) {
        HyperlinkLabel hyperlinkLabel = new HyperlinkLabel();
        hyperlinkLabel.setHyperlinkText(link);
        hyperlinkLabel.setHyperlinkTarget(link);
        return hyperlinkLabel;
    }
View Full Code Here

Examples of com.intellij.ui.HyperlinkLabel

*/
public class GuiUtil {

    public static HyperlinkLabel link(final String url) {
        if (url == null) {
            return new HyperlinkLabel();
        }
        final HyperlinkLabel label = new HyperlinkLabel(url);
        label.setHyperlinkTarget(url);
        label.addHyperlinkListener(new HyperlinkAdapter() {
            @Override
            protected void hyperlinkActivated(final HyperlinkEvent e) {
                if (e==null || e.getURL()==null) return;
                BrowserUtil.launchBrowser(e.getURL().toExternalForm());
            }
View Full Code Here

Examples of cz.cuni.mff.inetpaint.swing.HyperlinkLabel

        JLabel nameLabel = new JLabel(rb.getString("aboutName"));
        nameLabel.setFont(new Font(getFont().getFontName(), Font.BOLD, 20));

        JLabel versionLabel = new JLabel(rb.getString("aboutVersion") + " " + Program.VERSION_MAJOR.toString() + "." + Program.VERSION_MINOR.toString());

        HyperlinkLabel websiteLabel = new HyperlinkLabel(Program.URI_WEBPAGE);
        HyperlinkLabel documentationLabel = new HyperlinkLabel(Program.URI_DOCUMENTATION);

        JButton closeButton = new JButton(rb.getString("closeButton"));
        closeButton.addActionListener(new ActionListener() {
            public void actionPerformed(ActionEvent e) {
                processWindowEvent( new WindowEvent( AboutDialog.this, WindowEvent.WINDOW_CLOSING) );
View Full Code Here

Examples of org.rstudio.core.client.widget.HyperlinkLabel

      return new HTML("&nbsp;|&nbsp;");
   }
  
   private Widget createCommandLink(String caption, ClickHandler clickHandler)
   {
      HyperlinkLabel link = new HyperlinkLabel(caption, clickHandler);
      return link;
   }
View Full Code Here

Examples of org.rstudio.core.client.widget.HyperlinkLabel

   {
      // maintain reference to containing class for closing
      final PopupPanel popupPanel = this;
     
      // create a hyperlink label for this URL
      HyperlinkLabel link = new HyperlinkLabel(caption, new ClickHandler() {
         public void onClick(ClickEvent event)
         {
            globalDisplay.openEmailComposeWindow(email, null);
            popupPanel.hide();
         }
View Full Code Here

Examples of org.rstudio.core.client.widget.HyperlinkLabel

      captionPanel.setCellHorizontalAlignment(
                                          sshKeyPathLabel,
                                          HasHorizontalAlignment.ALIGN_LEFT);
  
      HorizontalPanel linkPanel = new HorizontalPanel();
      publicKeyLink_ = new HyperlinkLabel("View public key");
      publicKeyLink_.addStyleName(RES.styles().viewPublicKeyLink());
      publicKeyLink_.addClickHandler(new ClickHandler() {
         @Override
         public void onClick(ClickEvent event)
         {
View Full Code Here
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.