Highlighting Links

前端 未结 1 421
一生所求
一生所求 2021-01-13 15:42

I am creating a Help System that uses links (a JButton extension) that expand and collapse subpanels with JLabels in them. The links and the collapsible panels work, but I\'

1条回答
  •  一整个雨季
    2021-01-13 16:23

    One approach is to use HTML formatting for the button text. Of course, the path of least surprise for the end user would be if the buttons looked like buttons and the links looked like links (i.e. not buttons).


    Should I subclass something else for the links?

    For a link I'd generally use a JTextField, as shown on my answer to How to change JButton?

    E.G.

    0 讨论(0)
提交回复
热议问题