Win a copy of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js this week in the JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Dynamically sizing a JTextPane  RSS feed

 
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
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!