• Post Reply Bookmark Topic Watch Topic
  • New Topic

Text Editor in swing

 
Charu Singh
Greenhorn
Posts: 20
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
I have to create a text editor for my client wherein he can edit the text and then generate a report for this form.
I'm using the java print API for generating the reports, but I can't figure out which components to use to create the editor. Currently, I've created it using DnD api,where there's an option to add labels and text fields, but it is a tedious approach from the user point of view.

Can anyone help me pls.
 
Stuart Gray
Ranch Hand
Posts: 410
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I tried a similiar kind of thing recently and didn't come up with a viable solution. I thought HTML might be possible, edited using a JEditorPane, but it depends on the kind of complexity you require.
 
Sunil Kumar Gupta
Ranch Hand
Posts: 824
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
He is saying right....U should go and check the

Api like JEditorPane....

or better to check the source of an

open source project called Ekit....

It's a html editor , developed entirely using swing..

http://www.hexidec.com/ekit.php

it will help u to create your own text editor...

later on u can add the print function to ur application
 
Charu Singh
Greenhorn
Posts: 20
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks a ton..

I'm sure this will be of great help (though I've just flicked through the code yet)But this is exactly what I wanted.

Thanks again.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!