Win a copy of Learning Regular Expressions this week in the General Computing forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Liutauras Vilda
  • Campbell Ritchie
  • Tim Cooke
  • Bear Bibeault
  • Devaka Cooray
Sheriffs:
  • Jeanne Boyarsky
  • Knute Snortum
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Ganesh Patekar
  • Stephan van Hulst
  • Pete Letkeman
  • Carey Brown
Bartenders:
  • Tim Holloway
  • Ron McLeod
  • Vijitha Kumara

Text Editor in swing  RSS feed

 
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.
 
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.
 
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.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!