Re: How to start default browser when clicking on a label




Helmut Tessarek のメッセージ:

> Hi,
>
> I was wondering how I can implement a JLabel that references to a http link.
> When I click that label the default browser should open and loading the webpage.
> This is for a JDialog 'About' window.
> I've seen this several times, but I've no idea how to implement this with
> Java/Swing.
>
> Regards,
> Helmut
java.awt.Desktop#browse(URI) since JDK 1.6.

.



Relevant Pages

  • Re: How to start default browser when clicking on a label
    ... I was wondering how I can implement a JLabel that references to a http link. ... When I click that label the default browser should open and loading the webpage. ...
    (comp.lang.java.gui)
  • Re: merge using excel
    ... (I found several references to working with labels, ... If you really need to use a label type merge, then you do have to copy the ... "Peter Jamieson" wrote: ... What version of Excel was the Workbook created in? ...
    (microsoft.public.word.mailmerge.fields)
  • Re: List referencing
    ... when showanswers if true, the references are wrong. ... the bold number label --- but what?! ... preamble, ...
    (comp.text.tex)
  • Re: xr (external references) with identifiable ef format
    ... distinguishable from ordinary references to same-document references. ... be used and before applying the reference-command on the label ... % - did not come from an external document at all / was undefined ... % - come from an external document which was imported with prefix ...
    (comp.text.tex)
  • Re: Truncated Label Problem
    ... > and in which I display messages using JLabel to the user. ... Sounds like you should invoke pack on the dialog after changing the ... you change the label, but this does not involve resizing so the dialog ... public void actionPerformed{ ...
    (comp.lang.java.gui)