@Test public void testSetLinkText() { Link link = new Link("A link"); assertEquals("A link", link.getLinkText()); assertEquals("<html><u>A link</u></html>", link.getText()); }
public final String getLinkText() { return itsLinkText; }
Link extends JButton { public final String getLinkText() { return itsLinkText; } }
Link extends JButton { public final String getLinkText() { return itsLinkText; } Link();  Link(String text);  Link(String text, ActionListener controller);  Link(String text, ActionListener controller, String command); }
Link extends JButton { public final String getLinkText() { return itsLinkText; } Link();  Link(String text);  Link(String text, ActionListener controller);  Link(String text, ActionListener controller, String command); final String getLinkText(); @Override final void setEnabled(boolean value); final Color getHoveringColor(); final Color getTextColor(); final void setHoveringColor(Color color); @Override final void setText(String text); final void setTextColor(Color color); }
Link extends JButton { public final String getLinkText() { return itsLinkText; } Link();  Link(String text);  Link(String text, ActionListener controller);  Link(String text, ActionListener controller, String command); final String getLinkText(); @Override final void setEnabled(boolean value); final Color getHoveringColor(); final Color getTextColor(); final void setHoveringColor(Color color); @Override final void setText(String text); final void setTextColor(Color color);  }