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

Method setText

src/dorkbox/systemTray/MenuItem.java:267–274  ·  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

265 * @param text the new text to set
266 */
267 public
268 void setText(final String text) {
269 this.text = text;
270
271 if (peer != null) {
272 ((MenuItemPeer) peer).setText(this);
273 }
274 }
275
276 /**
277 * Specifies the new image to set for a menu entry, NULL to delete the image.

Callers 4

TestTrayMethod · 0.95
TestTraySwtMethod · 0.95
doJavaFxStuffMethod · 0.95
MenuItemMethod · 0.95

Calls 1

setTextMethod · 0.65

Tested by 3

TestTrayMethod · 0.76
TestTraySwtMethod · 0.76
doJavaFxStuffMethod · 0.76