I have a JTable with one column displaying certain text in every row Like,
Example (www.example.com)
Test (www.Test.com)
Now, when mouse hovers on url i.e. text inside bracket cursor should change to HAND cursor and text inside bracket should be in different color and underlined to show that it looks like its an hyperlink Tried lot of things but couldn't achieve.
Tried TableCellRenderer, but its changes the whole row content
Tried Map map = new Hashtable();
map.put(TextAttribute.KERNING, TextAttribute.KERNING_ON);
font = font.deriveFont(map);
but again it changes the content of whole row
Any solution would be great help
Object rows[][]={ };
Object headers[]={""};
TableModel model=new DefaultTableModel(rows,header);
String name= "Example";
String url="www.example.com";
String display = name + "(" + url +")" ;
(DefaultTableModel)model).addRow(new Object[]{display});
JTable table=Jtable(model);