Package javax.swing.event

Examples of javax.swing.event.HyperlinkListener


        try {
            browser.setPage(new URL(PAGE));
            browser.setEditable(false);
            ToolTipManager.sharedInstance().registerComponent(browser);
            browser.addHyperlinkListener(new HyperlinkListener() {
                @Override
                public void hyperlinkUpdate(HyperlinkEvent e) {
                    if (HyperlinkEvent.EventType.ACTIVATED == e.getEventType()) {
                        try {
                            browser.setPage(e.getURL());
View Full Code Here


                    "http://code.google.com/p/automatic-sites-registrator</a></b><br>" +
                    "Autors: Karasev R.A., Filonov R.I., Yutsis A.V.</body></html>";

            final JEditorPane editorPane = new JEditorPane("text/html", message);
            editorPane.setEditable(false);
            editorPane.addHyperlinkListener(new HyperlinkListener() {
                public void hyperlinkUpdate (HyperlinkEvent e)
                {
                    if (e.getEventType().equals(HyperlinkEvent.EventType.ACTIVATED))
                        try {
                            Desktop.getDesktop().browse(e.getURL().toURI());
View Full Code Here

    @SuppressWarnings("serial")
  private void init() {
        final JEditorPane editorPane = new JEditorPane(XmlConstants.CONTENT_TYPE_HTML, createHTMLUrlTaggedString(value));
        editorPane.setEditable(false);
        editorPane.setBackground(Color.WHITE);
        editorPane.addHyperlinkListener(new HyperlinkListener() {
            public void hyperlinkUpdate(HyperlinkEvent event) {
                logger.debug("Event:" + event);
                if (event.getEventType() == EventType.ACTIVATED) {
                    URL url = event.getURL();
                    try {
View Full Code Here

    private static final long serialVersionUID = 240L;

    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

        image.setBackground(Color.WHITE);
        jPanel1.add(image);
        jPanel1.add(label);
                       
        jEditorPane1.addHyperlinkListener (
        new HyperlinkListener () {
      public void hyperlinkUpdate(HyperlinkEvent e) {
        // Das aendern des Mauszeigers geht ab
        // Java 1.3 auch automatisch
        if (e.getEventType() ==
                           HyperlinkEvent.EventType.ENTERED) {
View Full Code Here

    infoPane = new JEditorPane();
    infoPane.setToolTipText("Information Area");
    infoPane.setContentType("text/html");
    infoPane.setEditable(false);
    infoPane.setText(BioModelGUIText.getInfo());
    infoPane.addHyperlinkListener(new HyperlinkListener() {
      public void hyperlinkUpdate(HyperlinkEvent evt) {
          URL url = evt.getURL();
          if (url != null) {
            if (evt.getEventType() == HyperlinkEvent.EventType.ENTERED) {
              CytoscapeWrapper.setStatusBarMsg(url.toString());
View Full Code Here

        htmlPanel.addPropertyChangeListener("page", waitingWorker);

        // let's mimic panel background color
        htmlPanel.setBackground(UIManager.getColor("Panel.background"));

        htmlPanel.addHyperlinkListener(new HyperlinkListener() {
            @Override
            public void hyperlinkUpdate(final HyperlinkEvent e) {
                if (e.getEventType() == HyperlinkEvent.EventType.ACTIVATED) {
                    // if uri is a file, get a temp version extracted from the
                    // jar and ask OS to open it,
View Full Code Here

        htmlPanel.addPropertyChangeListener("page", waitingWorker);

        // let's mimic panel background color
        htmlPanel.setBackground(UIManager.getColor("Panel.background"));

        htmlPanel.addHyperlinkListener(new HyperlinkListener() {
            @Override
            public void hyperlinkUpdate(final HyperlinkEvent e) {
                if (e.getEventType() == HyperlinkEvent.EventType.ACTIVATED) {
                    // if uri is a file, get a temp version extracted from the
                    // jar and ask OS to open it,
View Full Code Here

        htmlPanel.addPropertyChangeListener("page", waitingWorker);

        // let's mimic panel background color
        htmlPanel.setBackground(UIManager.getColor("Panel.background"));

        htmlPanel.addHyperlinkListener(new HyperlinkListener() {
            @Override
            public void hyperlinkUpdate(final HyperlinkEvent e) {
                if (e.getEventType() == HyperlinkEvent.EventType.ACTIVATED) {
                    // if uri is a file, get a temp version extracted from the
                    // jar and ask OS to open it,
View Full Code Here

   * @return The tool tip to display, and possibly a hyperlink event handler.
   */
  public ToolTipInfo getToolTipText(MouseEvent e) {

    String tip = null;
    HyperlinkListener listener = null;
    parserForTip = null;

//    try {
      int pos = textArea.viewToModel(e.getPoint());
      /*
 
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.