Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Develop an editor

 
christophe seguinot
Greenhorn
Posts: 18
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 11027
12
Android Eclipse IDE Google Web Toolkit Java Mac Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
christophe seguinot
Greenhorn
Posts: 18
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Pie
Posts: 48968
60
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Probably best discussed on the Swing forum. Moving.
 
Maneesh Godbole
Saloon Keeper
Posts: 11027
12
Android Eclipse IDE Google Web Toolkit Java Mac Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
christophe seguinot wrote:
Do you think I can do that with jeditorpane ?


I don't see why not.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic