I put a JTextPane into a JScrollPane and when the
cursor reach the end of line it jumps to the next
line.
I want the cursor to continue on the same line and a
horizontal scroll bar to appear.I want the cursor to
go on the next line if I press ENTER.
Maybe is a silly question but how can I do all this?
I have tried with
scrollPane.setHorizontalScrollBarPolicy(JScrollPane.HORIZONTAL_SCROLLBAR_ALWAYS);
but nothing.The horizontal var never appears.
I have looked in DefaultEditorKit and Document classes
and I didn't find anything.
Pls help me...
Best regards, 
  Valentin Pascaru

__________________________________________________
Do You Yahoo!?
Yahoo! Auctions - buy the things you want at great prices
http://auctions.yahoo.com/
_______________________________________________
Swing mailing list
[EMAIL PROTECTED]
http://eos.dk/mailman/listinfo/swing

Reply via email to