Eastsun,你别简单说啊,你尽量说详细点好吗,我觉得你上面写得很精典,想学习,但有些地方的确太深奥,看不懂啊,特别是:
try{
this.isSupported = Desktop.isDesktopSupported()&&Desktop.getDesktop().isSupported(Desktop.Action.BROWSE);
}catch(Exception e){
this.isSupported = false;
。。。。
。。。
public void mouseEntered(MouseEvent e){
setText(isSupported);
if(isSupported) setCursor(new Cursor(Cursor.HAND_CURSOR));
}
public void mouseExited(MouseEvent e){
setText(false);
}
public void mouseClicked(MouseEvent e){
try{
Desktop.getDesktop().browse(new java.net.URI(LinkLabel.this.url));
的确没能理解到各句的含意,劳烦你在旁边加些注释好吗?谢谢