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

Method add

src/dorkbox/systemTray/Menu.java:175–178  ·  view source on GitHub ↗

Adds a menu entry, separator, or sub-menu to this menu

(final T entry)

Source from the content-addressed store, hash-verified

173 * Adds a menu entry, separator, or sub-menu to this menu
174 */
175 public final
176 <T extends Entry> T add(final T entry) {
177 return add(entry, -1);
178 }
179
180 /**
181 * Adds a JMenu sub-menu to this menu. Because this is a conversion, the JMenu is no longer valid after this action.

Callers 4

TestTrayMethod · 0.95
TestTraySwtMethod · 0.95
doJavaFxStuffMethod · 0.95
MenuMethod · 0.95

Calls 3

runLaterMethod · 0.95
addMethod · 0.65
getMethod · 0.45

Tested by 3

TestTrayMethod · 0.76
TestTraySwtMethod · 0.76
doJavaFxStuffMethod · 0.76