MCPcopy Create free account
hub / github.com/dorkbox/SystemTray / setText

Method setText

src/dorkbox/systemTray/Status.java:59–66  ·  view source on GitHub ↗

Specifies the new text to set for a menu entry @param text the new text to set

(final String text)

Source from the content-addressed store, hash-verified

57 * @param text the new text to set
58 */
59 public
60 void setText(final String text) {
61 this.text = text;
62
63 if (peer != null) {
64 ((StatusPeer) peer).setText(this);
65 }
66 }
67
68 /**
69 * @return a copy of this Status as a swing JMenuItem, with all elements converted to their respective swing elements.

Callers 1

setStatusMethod · 0.95

Calls 1

setTextMethod · 0.65

Tested by

no test coverage detected