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

Method asSwingComponent

src/dorkbox/systemTray/Status.java:71–79  ·  view source on GitHub ↗

@return a copy of this Status as a swing JMenuItem, with all elements converted to their respective swing elements.

()

Source from the content-addressed store, hash-verified

69 * @return a copy of this Status as a swing JMenuItem, with all elements converted to their respective swing elements.
70 */
71 public
72 JMenuItem asSwingComponent() {
73 JMenuItem jMenuItem = new JMenuItem();
74
75 jMenuItem.setText(getText());
76 jMenuItem.setEnabled(false);
77
78 return jMenuItem;
79 }
80}

Callers 1

asSwingComponentMethod · 0.95

Calls 3

getTextMethod · 0.95
setTextMethod · 0.65
setEnabledMethod · 0.65

Tested by

no test coverage detected