• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • Devaka Cooray
  • Ron McLeod
  • Jeanne Boyarsky
Sheriffs:
  • Liutauras Vilda
  • paul wheaton
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Piet Souris
  • Carey Brown
  • Tim Holloway
Bartenders:
  • Martijn Verburg
  • Frits Walraven
  • Himai Minh

Outliner Basics

 
Ranch Hand
Posts: 120
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
(instanceof Sidekick)
Posts: 8791
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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?
 
Dinner will be steamed monkey heads with a side of tiny ads.
the value of filler advertising in 2021
https://coderanch.com/t/730886/filler-advertising
reply
    Bookmark Topic Watch Topic
  • New Topic