0

How to generate the objects dynamically in Jeditorpane?

For Eg: When i click on "Submit" button, it used to create editor pane objects dynamically such that i can get the values from editor pane or set the values to the editor pane using object name.

Thanks

aleroot
  • 71,077
  • 30
  • 176
  • 213

1 Answers1

2
mKorbel
  • 109,525
  • 20
  • 134
  • 319
  • Also consider `JTextPane`, which has `insertComponent()` and `insertIcon()` methods, illustrated [here](http://stackoverflow.com/a/11744971/230513). – trashgod Sep 25 '12 at 19:27