aspose file tools*
The moose likes Swing / AWT / SWT and the fly likes Develop an editor Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "Develop an editor" Watch "Develop an editor" New topic
Author

Develop an editor

christophe seguinot
Greenhorn

Joined: Oct 19, 2007
Posts: 18
Hello,

I would like to develop an XML editor, does someone knows where I can find some sample code or tutorial to help me ?
I would like to code something clean and therefore I'm sure there are some patterns to follow.

Thanks a lot.

Christophe
Maneesh Godbole
Saloon Keeper

Joined: Jul 26, 2007
Posts: 10451
    
    8

Hi Christophe,
Welcome to the Ranch.

Swing has a built in component called JEditorPane which handles markups. Check out the source code to get an idea.
Also check out the JTextPane.


[How to ask questions] [Donate a pint, save a life!] [Onff-turn it on!]
christophe seguinot
Greenhorn

Joined: Oct 19, 2007
Posts: 18
My idea is to have an editor where I can use drap and drop of "component".

1. I drag and drop a component from the left bar to the main window
2. Automatically a window opens and asks me to specifies information related to the component
3. The generated code is written in the main window at the point defined by the drag and drop

Do you think I can do that with jeditorpane ?
Campbell Ritchie
Sheriff

Joined: Oct 13, 2005
Posts: 39396
    
  28
Probably best discussed on the Swing forum. Moving.
Maneesh Godbole
Saloon Keeper

Joined: Jul 26, 2007
Posts: 10451
    
    8

christophe seguinot wrote:
Do you think I can do that with jeditorpane ?


I don't see why not.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Develop an editor