jQuery in Action, 3rd edition
The moose likes Beginning Java and the fly likes Outliner Basics Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "Outliner Basics" Watch "Outliner Basics" New topic

Outliner Basics

Karen Baog
Ranch Hand

Joined: Mar 02, 2005
Posts: 120
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
* 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.

amerzil co-ed student<br />"Praise be the Code"
Stan James
(instanceof Sidekick)
Ranch Hand

Joined: Jan 29, 2003
Posts: 8791
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.

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
Karen Baog
Ranch Hand

Joined: Mar 02, 2005
Posts: 120
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?
I agree. Here's the link: http://aspose.com/file-tools
subject: Outliner Basics
It's not a secret anymore!