开发者

hyperlink in java

Is 开发者_如何学Gothere any method to create clickable hyperlink in JTextArea in Java?


One way you can do it if you absolutely want to use the jTextArea is to get the User MouseClick(x,y) location and then handle from there.

However, the easier way out would be to use a JEditorPane. Maybe this link will help:

http://www.apl.jhu.edu/~hall/java/Swing-Tutorial/Swing-Tutorial-JEditorPane.html

Cheers!

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜