开发者

hyperlink in java

开发者 https://www.devze.com 2023-03-02 16:24 出处:网络
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

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

精彩评论

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