java - Problem with multi-line JTextField -



java - Problem with multi-line JTextField -

i have jtextfield , need have 3 lines in it, such these:

hi name mehdi

how can set text in jtextfield? tried \n, didn't work.

1 : jtextfield not back upwards multiline. want jtextarea

2 : newlines aren't same on systems, might have utilize "\r\n" if running windows. since java 7, there system.lineseparator solve issue.

(see oracle documentation)

java uitextfield jtextfield

Comments

Popular posts from this blog

java - How to pass parameters between Request-Scoped Controllers? -

string - what is the difference between "some" == "some\0" and strcmp("some","some\0") in c++? -

actionscript 3 - Flex: moving a point with rotation doesnt change the point XY? -