Sets the text. -- BH never called?? The position is ignored if the location is set to a corner. @param _text
(String _text)
| 64 | * @param _text |
| 65 | */ |
| 66 | public void setText(String _text) { |
| 67 | text = fixText(_text); |
| 68 | final Container c = this.getParent(); |
| 69 | if (c == null) { |
| 70 | return; |
| 71 | } |
| 72 | c.validate(); |
| 73 | // BH -- don't we want this? c.repaint(); |
| 74 | // // BH ? How does this help? Layout but no refresh?? |
| 75 | // OSPRuntime.postEvent(() -> { c.validate();}); |
| 76 | } |
| 77 | |
| 78 | /** |
| 79 | * Sets the font. Added by Doug Brown Feb 2018 |