Clone a 'link' in SWT

Posted by Steve on Stack Overflow See other posts from Stack Overflow or by Steve
Published on 2012-09-10T09:35:31Z Indexed on 2012/09/10 9:37 UTC
Read the original article Hit count: 153

Filed under:
|
|
|

I have a table of information that includes a username, an ip address, and a timestamp.

What I wanted to do was to have the ip address contained within a link object that when the link is clicked it utilizes bgp.he.net to get information about the host/IP address. I have tried creating threads to resolve the IP addresses but it is often a large amount of IP addresses and I read that InetAddress#getByName isn't non-blocking, so I figured having links that go to this site is the next best thing.

Question is: Is it possible to have links for each of my IP addresses in the table without creating a new link object for each row? I don't know how bad that would be on memory usage which is why I'm inquiring about cloning an instance of an IP and having the link open bgp.he.net/link.getText()

© Stack Overflow or respective owner

Related posts about java

Related posts about hyperlink