添加internal访问限制

This commit is contained in:
shenshaoming 2020-08-18 12:23:18 +08:00
parent df7779b88b
commit 8b22e922a0

View File

@ -9,7 +9,7 @@ import javax.swing.JLabel
/**
* 构造方法中url指代用户需要点击的链接, text为显示的提示内容
*/
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() {