Re: Hyperlink in JTable

From: Andrew Thompson (SeeMySites_at_www.invalid)
Date: 02/10/05


Date: Thu, 10 Feb 2005 11:14:22 GMT

On 9 Feb 2005 21:11:45 -0800, vetri wrote:

> Is it possible to put a data as a Hyperlink in JTable?

Wow! You actually gave me more detail through the form on my site
than you did in these groups, for the benefit of everyone else..

"Hi is it possible to convert the data in a JTable into hyperlink?
Plz answer to this Question i'm converted the data in JTable into
hyperlink but how to go the url link when we click the data .
I tried it thru JEditorpane..but specify is there is any other way to do
this......"

Many. You can add a MouseListener to a Label to make it change
color of the label on MouseOver like a link, also change the cursor
at the same time. You can add an ActionListener and when clicked,
( open new browser here.. )

That is one possible way that I do not have time to investigate
(as opposed to describe in vague, sweeping terms).

Any other takers?

-- 
Andrew Thompson
http://www.PhySci.org/codes/  Web & IT Help
http://www.PhySci.org/  Open-source software suite
http://www.1point1C.org/  Science & Technology
http://www.LensEscapes.com/  Images that escape the mundane


Relevant Pages

  • Hand cursor/icon like with Internet Explorer hyperlink
    ... I want the cursor to look like the hand over a hyperlink in Internet ... Public Const IDC_ARROW = 32512& ... on the UserForm for the label MouseMove ...
    (microsoft.public.excel.programming)
  • Re: Changing the mouse pointer over a textbox
    ... OnClick event will fire. ... I need to have a different URL as hyperlink address for each record. ... label because the value of the label's HyperlinkAddress property is ...
    (microsoft.public.access.formscoding)
  • Re: Edit Hyperlink with Code rather than the EditHyperlink Dialog
    ... text stored in a hyperlink field is not just the URL. ... You could create a label control on the form, ... textbox, and in the textboxes afterupdate event, set the HyperlinkAddress ... Private sub cmd_FollowHyperlink_Click ...
    (microsoft.public.access.externaldata)
  • Re: simulate actual clicking in VBA Code
    ... To follow the hyperlink address in a label named Label1, ... I would like the code to execute whatever is in the 0n_click ...
    (microsoft.public.access.modulesdaovba)
  • Hyperlink in User Form?
    ... If you insert a text label from the "Control toolbox" ... You can format the label to look like a regular hyperlink ... >will open another Word document. ...
    (microsoft.public.word.vba.general)