Constructs a new text field initialized with the specified text.
text | the text to be displayed. If
text is null , the empty
string "" will be displayed. |
HeadlessException | if GraphicsEnvironment.isHeadless() returns true. |
java.awt.GraphicsEnvironment.isHeadless
Diagram: Components