mirror of
https://github.com/mamoe/mirai.git
synced 2025-03-30 09:50:12 +08:00
Update HyperLinkLabel.kt
修改代码格式
This commit is contained in:
parent
8b22e922a0
commit
31773954ad
@ -9,7 +9,7 @@ import javax.swing.JLabel
|
|||||||
/**
|
/**
|
||||||
* 构造方法中url指代用户需要点击的链接, text为显示的提示内容
|
* 构造方法中url指代用户需要点击的链接, text为显示的提示内容
|
||||||
*/
|
*/
|
||||||
internal class HyperLinkLabel constructor(url :String, text :String) : JLabel() {
|
internal class HyperLinkLabel constructor(url: String, text: String) : JLabel() {
|
||||||
init {
|
init {
|
||||||
super.setText("<html><a href='$url'>$text</a></html>");
|
super.setText("<html><a href='$url'>$text</a></html>");
|
||||||
addMouseListener(object : MouseAdapter() {
|
addMouseListener(object : MouseAdapter() {
|
||||||
|
Loading…
Reference in New Issue
Block a user