Hi , How can i add line numbers to a JTextField ? I mean line numbers to the left of my JTextField. When i press Enter , a new line number should appear. Thanks.
posted 16 years ago
I am confused about your question. JTextField only supports one line, what would a line number mean? By the way, when enter is hit inside a JTextField it sends an action event - it does not add a linefeed/carriage return ... Manfred.