• Post Reply Bookmark Topic Watch Topic
  • New Topic

Dynamically sizing a JTextPane

 
Chris Mueller
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi there,

I would like to create a JTextPane with a minimum size (20,200), that expands vertically as the user enters text. This expansion would be infinite, so there will be no maximum size in the vertical direction, but I would like to keep the width constrained to 200px. Any ideas how I might do this?

Thanks,
Chris
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!