Update HyperLinkLabel.kt

修改代码格式
This commit is contained in:
申劭明 2020-08-18 13:09:01 +08:00 committed by GitHub
parent 8b22e922a0
commit 31773954ad
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -9,7 +9,7 @@ import javax.swing.JLabel
/**
* 构造方法中url指代用户需要点击的链接, text为显示的提示内容
*/
internal class HyperLinkLabel constructor(url :String, text :String) : JLabel() {
internal class HyperLinkLabel constructor(url: String, text: String) : JLabel() {
init {
super.setText("<html><a href='$url'>$text</a></html>");
addMouseListener(object : MouseAdapter() {
@ -23,4 +23,4 @@ internal class HyperLinkLabel constructor(url :String, text :String) : JLabel()
}
})
}
}
}