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

Outliner Basics

 
Karen Baog
Ranch Hand
Posts: 120
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I need to create a basic outliner program.
What do I need to do other than knowing to write in Java (understanding the object-oriented methodologies)?

I have seen what an outliner looks like. For a start, what kind of component (widget) should I use for users to enter their entries? And, how do you put an icon on the left side of an entry line if some notes are entered for this particular entry?

//these are the entry lines. the * indicates
//notes for that particular entry

* Softdrinks
Cakes
* Salads

//on the same screen is some kind of a textarea
//where a user can enter details. __________________________________________
Must be Pepsi


And also be able to save/retrieve it.

I need some guidance.
 
Stan James
(instanceof Sidekick)
Ranch Hand
Posts: 8791
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I did something like this (an XML editor actually) with drag and drop on a custom tree control plus a text edit area associated with the currently selected tree node. There's a pretty big learning curve ahead for Swing and drag & drop on top of basic Java. Are you comfortable with building a Swing panel and loading a tree control? If not, you might take a shot at it and wander over to the Swing forum with any problems you encounter.

I go back far enough to remember an outliner called ThinkTank for MS-DOS. It was a pretty cool way to brainstorm a variety of ideas and organize them. I'm not aware of any good ones on the market now, but Google for outline tools and you may find some inspiration for design and features.
 
Karen Baog
Ranch Hand
Posts: 120
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I've just started to venture into GUI using Java.
I have a relatively strong understanding in GUI programming in C++ using Borland C++ Builder 5 and later.

The thing is, my instructor insists on hard-coding everything, and not do a drag and drop method.

Perhaps, a link to a site to show the basics of writing an Outliner.
For now, no indentation is required.

With my limited knowledge in Java, I don't know where to start. I thought about dynamically creating a new JTextField object when the user hits the 'enter' key whilst the focus is in the current JTextField object.

Please, guidance?
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic