Looking for vernacular

  • Follow


Hello,

Previously, when looking for information on a topic on this forum, I
had the wrong vernacular for searching the web for answers.
Obviously, that hindered my finding a solution.  So, this time I
thought that I would ask for the vernacular first so that I could
search for the solution prior to asking for one.

I would like to create a GUI element wherein sub-sections of the
element have different colors.  For example, a number line like object
where the ranges 2-5, 10-34, and 50-70 are highlighted/colored, but
the background color stays the same.  (I somewhat envision a progress
bar with multiple shuttles).  Is there a name for this kind of
construct?  I have tried combinations of "multiple range", "progress
bar", "jprogressbar", and more, with unsatisfactory results.

Thanks,
Todd
0
Reply todd.heidenthal (70) 3/30/2009 6:13:57 PM

In article 
<25e705ed-8f68-4e9e-8882-7a0ecfa8f2cd@r3g2000vbp.googlegroups.com>,
 Todd <todd.heidenthal@lmco.com> wrote:

> Previously, when looking for information on a topic on this forum, I
> had the wrong vernacular for searching the web for answers.
> Obviously, that hindered my finding a solution.  So, this time I
> thought that I would ask for the vernacular first so that I could
> search for the solution prior to asking for one.
> 
> I would like to create a GUI element wherein sub-sections of the
> element have different colors.  For example, a number line like object
> where the ranges 2-5, 10-34, and 50-70 are highlighted/colored, but
> the background color stays the same.  (I somewhat envision a progress
> bar with multiple shuttles).  Is there a name for this kind of
> construct?  I have tried combinations of "multiple range", "progress
> bar", "jprogressbar", and more, with unsatisfactory results.

Perhaps <http://www.google.com/search?q=java+multislider>?

-- 
John B. Matthews
trashgod at gmail dot com
<http://sites.google.com/site/drjohnbmatthews>
0
Reply nospam59 (9950) 3/30/2009 7:10:28 PM


On Mon, 30 Mar 2009 11:13:57 -0700 (PDT), Todd
<todd.heidenthal@lmco.com> wrote, quoted or indirectly quoted someone
who said :

>I would like to create a GUI element wherein sub-sections of the
>element have different colors.  For example, a number line like object
>where the ranges 2-5, 10-34, and 50-70 are highlighted/colored, but
>the background color stays the same.

I have used three approaches to such a beast.

1. mark up the text with HTML and use a JEditorPane. see
http://mindprod.com/products1.html#ESPER

2. work at a low level with drawString on a Canvas or JPanel.
see http://mindprod.com/products1.html#JDISPLAY 

3. Use a JTable with a CustomCellRenderer.
see http://mindprod.com/products1.html#VERCHECK
-- 
Roedy Green Canadian Mind Products
http://mindprod.com

"Don�t worry about the world coming to an end today.
 It is already tomorrow in Australia."
~ Charles Schulz
0
Reply see_website (4863) 3/30/2009 10:54:56 PM

2 Replies
31 Views

(page loaded in 0.051 seconds)


Reply: