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

iphone - Dismissing a UIAlertView -

c# - Can ProtoBuf-Net deserialize to a flat class? -

javascript - Change element in each JQuery tab to dynamically generated colors -