Package javax.swing.event

Examples of javax.swing.event.HyperlinkListener


                + "</html>");
       
        pane.setEditable(false);
        pane.setOpaque(false);
        pane.setBackground(new Color(0, 0, 0, 0));
        pane.addHyperlinkListener(new HyperlinkListener() {
            @Override
            public void hyperlinkUpdate(HyperlinkEvent e) {
                if (e.getEventType() == EventType.ACTIVATED) {
                    try {
                        Desktop.getDesktop().browse(e.getURL().toURI());
View Full Code Here


    TipUtil.tweakTipEditorPane(textArea);
    if (ft.getImageBase()!=null) { // Base URL for images
      ((HTMLDocument)textArea.getDocument()).setBase(ft.getImageBase());
    }
    textArea.addMouseListener(tipListener);
    textArea.addHyperlinkListener(new HyperlinkListener() {
      public void hyperlinkUpdate(HyperlinkEvent e) {
        if (e.getEventType()==HyperlinkEvent.EventType.ACTIVATED) {
          TipWindow.this.ft.possiblyDisposeOfTipWindow();
        }
      }
View Full Code Here

                + XBayaConstants.WEB_URL.toString() + "</a>" + "</html>";
        JEditorPane editorPane = new JEditorPane(
                XmlConstants.CONTENT_TYPE_HTML, message);
        editorPane.setEditable(false);
        editorPane.setBackground(buttonPanel.getBackground());
        editorPane.addHyperlinkListener(new HyperlinkListener() {
            public void hyperlinkUpdate(HyperlinkEvent event) {
                logger.entering(new Object[] { event });
                if (event.getEventType() == EventType.ACTIVATED) {
                    URL url = event.getURL();
                    try {
View Full Code Here

        if (tcLogsPane != null) {
           TextAreaAppender.addTextArea(tcLogsPane);
        }
        tcDocsPane.setEditorKit(new HTMLEditorKit());
        tcDocsPane.addHyperlinkListener(new HyperlinkListener() {

            public void hyperlinkUpdate(HyperlinkEvent e) {
            }
        });
View Full Code Here

*/
public class HtmlPane extends JTextPane {
  private static final Logger log = LoggingManager.getLoggerForClass();

  public HtmlPane() {
    this.addHyperlinkListener(new HyperlinkListener() {
      public void hyperlinkUpdate(HyperlinkEvent e) {
        if (e.getEventType() == HyperlinkEvent.EventType.ACTIVATED) {
          String ref = e.getURL().getRef();
          if (ref != null && ref.length() > 0) {
            log.debug("reference to scroll to = " + ref);
View Full Code Here

    tutorialToolbar.setFloatable(false);
    tutorialToolbar.add(startButton);
    tutorialToolbar.add(stopButton);
    container.add(tutorialToolbar, BorderLayout.NORTH);
    tutorialArea.addHyperlinkListener(
      new HyperlinkListener() {
        public void hyperlinkUpdate(HyperlinkEvent e) {
          if (e.getEventType() == HyperlinkEvent.EventType.ACTIVATED) {
            if (e.getDescription().equals("StartTutorial")) {
              startTutorial.actionPerformed(null);
            } else if (e.getDescription().equals("StopTutorial")) {
View Full Code Here

      add(pane, BorderLayout.CENTER);

      try {
        textInfo.setPage(helpURL);
        textInfo.addHyperlinkListener(
          new HyperlinkListener() {
            public void hyperlinkUpdate(HyperlinkEvent e) {
              if (e.getEventType() == HyperlinkEvent.EventType.ACTIVATED) {
                urlStack.add(textInfo.getPage());

                try {
View Full Code Here

      _queryPlanTabListener = queryPlanTabListener;


      _queryPlanPanel = new QueryPlanPanel();
      _queryPlanPanel.txtQueryPlan.setContentType("text/html");
      _queryPlanPanel.txtQueryPlan.addHyperlinkListener(new HyperlinkListener()
      {
         public void hyperlinkUpdate(HyperlinkEvent e)
         {
            onHyperlinkUpdate(e);
         }
View Full Code Here

    JEditorPane htmlPane = new JEditorPane();

    htmlPane.setEditorKit(new ExtendedHTMLEditorKit());
    htmlPane.setEditable(false);

    htmlPane.addHyperlinkListener(new HyperlinkListener() {
      public void hyperlinkUpdate(HyperlinkEvent evt) {
        if (evt.getEventType() == HyperlinkEvent.EventType.ACTIVATED) {
          URL url = evt.getURL();
          if (url != null) {
            Launch.openURL(url.toString());
View Full Code Here

   
    if(!showDisableButtonDontShowAllButton) {
      bg.add(mGlobalSettings);
      add(mGlobalSettings, cc.xyw(1,y++,2));
     
      JEditorPane helpLabel = UiUtilities.createHtmlHelpTextArea(mLocalizer.msg("help","The default plugin setting can be changed in the <a href=\"#link\">picture settings</a>."), new HyperlinkListener() {
        public void hyperlinkUpdate(HyperlinkEvent e) {
          if (e.getEventType() == HyperlinkEvent.EventType.ACTIVATED) {
            SettingsDialog.getInstance().showSettingsTab(SettingsItem.PICTURES);
          }
        }
View Full Code Here

TOP

Related Classes of javax.swing.event.HyperlinkListener

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.