JXHyperlink extends JButton { @Override public void updateUI() { setUI((ButtonUI)LookAndFeelAddons.getUI(this, ButtonUI.class)); } JXHyperlink();  JXHyperlink(Action action); void setURI(URI uri); Color getUnclickedColor(); void setClickedColor(Color color); Color getClickedColor(); void setUnclickedColor(Color color); void setClicked(boolean clicked); boolean isClicked(); void setOverrulesActionOnClick(boolean overrule); boolean getOverrulesActionOnClick(); @Override String getUIClassID(); @Override void updateUI(); static final String uiClassID; }
@Test public void testBorderUIResource() { JXHyperlink hyperlink = new JXHyperlink(); if (!(hyperlink.getBorder() instanceof UIResource)) { LOG.info("not running test, LAF doesn't install hyperlink border"); return; } Border border = new EmptyBorder(1, 2, 3, 4); hyperlink.setBorder(border); hyperlink.updateUI(); assertSame("border untouched in updateUI ", border, hyperlink.getBorder()); }