Package org.jdesktop.swingx.action

Examples of org.jdesktop.swingx.action.OpenBrowserAction


    _viewOnlineButton = new JButton("View online", imageManager.getImageIcon("images/actions/website.png"));
    _viewOnlineButton.addActionListener(new ActionListener() {

      public void actionPerformed(ActionEvent event) {
        OpenBrowserAction actionListener = new OpenBrowserAction(_selectedRegex.createWebsiteUrl());
        actionListener.actionPerformed(event);
      }

    });
    _viewOnlineButton.setEnabled(false);
    _viewOnlineButton.setOpaque(false);
View Full Code Here


      final JXTextField usernameTextField = new JXTextField();
      usernameTextField.setColumns(15);
      final JPasswordField passwordTextField = new JPasswordField(15);

      final JButton registerButton = WidgetFactory.createButton("Register", "images/actions/website.png");
      registerButton.addActionListener(new OpenBrowserAction("http://datacleaner.eobjects.org/?register"));

      final JButton loginButton = WidgetFactory.createButton("Login", "images/actions/login.png");
      loginButton.addActionListener(new ActionListener() {
        @Override
        public void actionPerformed(ActionEvent e) {
View Full Code Here

        optionsDialog.setVisible(true);
      }
    });

    final JMenuItem helpContents = WidgetFactory.createMenuItem("Help contents", "images/widgets/help.png");
    helpContents.addActionListener(new OpenBrowserAction("http://datacleaner.eobjects.org/docs"));

    final JMenuItem askAtTheForumsMenuItem = WidgetFactory.createMenuItem("Ask at the forums", "images/menu/forums.png");
    askAtTheForumsMenuItem.addActionListener(new OpenBrowserAction("http://datacleaner.eobjects.org/forum/1"));

    final JMenuItem aboutMenuItem = WidgetFactory.createMenuItem("About DataCleaner", "images/menu/about.png");
    aboutMenuItem.addActionListener(new ActionListener() {
      @Override
      public void actionPerformed(ActionEvent e) {
View Full Code Here

      public void actionPerformed(ActionEvent e) {
        Object item = librariesComboBox.getSelectedItem();
        LicensedProject project = (LicensedProject) item;
        String websiteUrl = project.websiteUrl;
        if (!StringUtils.isNullOrEmpty(websiteUrl)) {
          new OpenBrowserAction(websiteUrl).actionPerformed(e);
        }
      }
    });

    librariesComboBox.addItem("- select project -");
View Full Code Here

    headerLabel.setFont(WidgetUtils.FONT_HEADER1);

    final ImageManager imageManager = ImageManager.getInstance();

    final JButton datacleanerButton = new JButton(imageManager.getImageIcon("images/links/datacleaner.png"));
    datacleanerButton.addActionListener(new OpenBrowserAction("http://datacleaner.eobjects.org"));
    datacleanerButton.setToolTipText("Visit the DataCleaner website");
    datacleanerButton.setBorder(null);

    final JButton bloggerButton = new JButton(imageManager.getImageIcon("images/links/blogger.png"));
    bloggerButton.addActionListener(new OpenBrowserAction("http://kasper.eobjects.org"));
    bloggerButton.setToolTipText("Follow along at our blog");
    bloggerButton.setBorder(null);

    final JButton linkedInButton = new JButton(imageManager.getImageIcon("images/links/linkedin.png"));
    linkedInButton.addActionListener(new OpenBrowserAction("http://www.linkedin.com/groups?gid=3352784"));
    linkedInButton.setToolTipText("Join the DataCleaner LinkedIn group");
    linkedInButton.setBorder(null);

    final DCPanel buttonPanel = new DCPanel();
    buttonPanel.setLayout(new HorizontalLayout());
View Full Code Here

    this(ImageManager.getInstance().getImageIcon("images/powered-by-human-inference-dark.png"));
  }

  public HumanInferenceToolbarButton(Icon icon) {
    super(icon);
    addActionListener(new OpenBrowserAction("http://eobjects.org/humaninference"));
    setOpaque(false);
    setBorder(new EmptyBorder(4, 4, 4, 4));
    setToolTipText("Powered by Human Inference");
  }
View Full Code Here

    addExtensionButton.addActionListener(new ActionListener() {
      @Override
      public void actionPerformed(ActionEvent e) {
        final JMenuItem extensionSwapMenuItem = new JMenuItem("Browse the ExtensionSwap", imageManager
            .getImageIcon("images/actions/website.png"));
        extensionSwapMenuItem.addActionListener(new OpenBrowserAction("http://datacleaner.eobjects.org/extensions"));

        final JMenuItem manualInstallMenuItem = new JMenuItem("Manually install JAR file", imageManager
            .getImageIcon("images/filetypes/archive.png"));
        manualInstallMenuItem.addActionListener(new ActionListener() {
          @Override
View Full Code Here

TOP

Related Classes of org.jdesktop.swingx.action.OpenBrowserAction

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.