Re: Best Approach for putting words on a JPanel (with special requirements) [2nd attempted post]



Andrew,

Thanks for your reply.

> Where are you going to put it? Describe it in words.

It is rather complex to describe in words. That is why I did not try
to describe it in my original post. I figured if the post was too long
some people would not read it.

Okay, ready? Here goes.

It is a type of view onto a document of linguistic markup of text. I
will give the user the ability to point to a word and tell me that the
word is a noun, verb, adjective, etc. The user will also tell me which
nouns adjectives modify, which verbs adverbs modify and such. I will
draw arrows from the modifier to the modifyee.

The page has four columns for simple sentences: Coordinate
Conjunction, Subject, Verb, Direct Object. As the user tells me which
words or phrases fall under which category, I tab that text over to the
appropriate column. If a word starts too far to the right of the page
to be tabbed to the appropriate column, I start a new line and then tab
it over.

Now, all of this can nest. The above is "simple" in the case of a
sentence with no subordinate clauses and now noun phrases. A simple
case is "I like programming." But when there is a subordinate clause
(I like programming because it is fun) not only does the main clause
have a subject, verb, DO, but so does the subordinate clause. But we
plot that in a smaller frame which is a fraction of the width of the
page.

Have I lost you yet? Sorry.

As I look over the API documentation I can see that a custom layout
manager is just the thing I need, but now I need to learn how to
implement that. This brings me back to one of my posts to Tom Hawtin,
where is a good resource for figuring out how to do that?

- Paul

.



Relevant Pages