Specifies the new text to set for a menu entry @param text the new text to set
(final String text)
| 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. |