Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

multiline textfield

 
Annalisa Annalisa
Greenhorn
Posts: 6
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
How can I specify a text field (JTExtField) as multiline? I mean that the user input doesn't expand horizontally but it automatically goes down a line?

Thank you
Annalisa
 
James Carman
Ranch Hand
Posts: 580
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You can't! Use JTextArea instead.
 
Ray Stojonic
Ranch Hand
Posts: 326
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The first line of the JTextField documentation reads: "JTextField is a lightweight component that allows the editing of a single line of text."

What you want is a JTextArea
 
Annalisa Annalisa
Greenhorn
Posts: 6
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
ok..sorry! :roll:
thank you
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic