Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

ScrollPane behave differently  RSS feed

 
Balasubramanian Chandrasekaran
Ranch Hand
Posts: 215
Firefox Browser Linux VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Can any one tell me the difference in the behaviour of the ScrollPane Vs JScrollPane in the following code.



I tried to use the same piece of code in JScrollPane and in the output the JTextPane which holds the DefaultStyledDocument automatically wraps the text.But instead of JScrollPane(swing) if i use ScrollPane(AWT) then the JTextPane doesn't wraps the text.

Why is this behaviour?
And also i need to achieve JScrollPane without wrapping text.For that what i have to change....
Awaiting your reply
 
Balasubramanian Chandrasekaran
Ranch Hand
Posts: 215
Firefox Browser Linux VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I got answer to my query in this forum.

But, can anyone explain me why JScrollPane behave like that.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!