This week's book giveaway is in the OO, Patterns, UML and Refactoring forum. We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line! See this thread for details.
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
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
Joined: Mar 02, 2005
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.