开发者

Which swing components to use

Can you tell me which Java开发者_JAVA百科 components I should use to achieve the same result as on picture?

Which swing components to use

After clicking on the link FileChooser is opened.


A JEditorPane with HTML markup inside.

You'll have to add a HyperlinkListener to trigger some action when the link is clicked.


I'd recommend using a dialog. Either a generic JOptionPane, or undecorated JDialog. You can then decorate a JLabel to look like a hyperlink, and then register a MouserListener that will open the JFileChooser.


  1. The background could be a JPanel within a JDialog or JFrame
  2. Use JLabel as an image to show the icon "i".
  3. Use JLabel as the hyperlink for "Click here". See this for how achieve hyperlink with JLabel
  4. Add an action to the label to open JFileChooser.
0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜