aspose file tools*
The moose likes Java in General and the fly likes Text editor in Java Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Soft Skills this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Java » Java in General
Bookmark "Text editor in Java" Watch "Text editor in Java" New topic
Author

Text editor in Java

Guy Geelen
Greenhorn

Joined: Apr 18, 2007
Posts: 5
Hi all,

is there any existing java code or program that I can use in my program as a text editor? I am developing a system in which I have to be able to generate letters and reports. I want to create these letters etcetera in my running java program.
The functionalities I need: the basic text editing possibilities: bold, italic, font changing, ...
It has to be possible to integrate it inside a JFrame, so like a InternalFrame or something like that

Any ideas?
Thanks
Joe Ess
Bartender

Joined: Oct 29, 2001
Posts: 8997
    
    9

The Java Tutorial: How to Use Editor Panes


[How To Ask Questions On JavaRanch]
Guy Geelen
Greenhorn

Joined: Apr 18, 2007
Posts: 5
Thanks, but I already knew that one.
What I mean is that I don't want to write one from scratch;
Isn't there any existing application that represents a text editor
Jesper de Jong
Java Cowboy
Saloon Keeper

Joined: Aug 16, 2005
Posts: 14430
    
  23

Guy, the Swing editor pane supports formatting, colours, fonts etc., just what you were asking for. Why exactly are you not satisfied with it - what exactly do you want? Do you want a stand-alone text editing program written in Java? See jEdit for example, if that's what you're looking for.


Java Beginners FAQ - JavaRanch SCJP FAQ - The Java Tutorial - Java SE 8 API documentation
Stan James
(instanceof Sidekick)
Ranch Hand

Joined: Jan 29, 2003
Posts: 8791
I'm guessing he's looking for someone who has already built all the toolbars and key mappings to make it work like a mainstream word processor. I would not be surprised to find such a thing with Google.


A good question is never answered. It is not a bolt to be tightened into place but a seed to be planted and to bear more seed toward the hope of greening the landscape of the idea. John Ciardi
Guy Geelen
Greenhorn

Joined: Apr 18, 2007
Posts: 5
Hi,
that's exactly what I meant.
But I've already made one my own. Not exactly what I need yet, but it will do.
Thanks
Stan James
(instanceof Sidekick)
Ranch Hand

Joined: Jan 29, 2003
Posts: 8791
Cool. Making your own is always more fun and educational, even if it's not the most economical. Keep having fun!
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Text editor in Java