Re: Coloring certain lines in a GUI 'edit' box
I am quite sure that this is just wishful thinking.
With most GUI packages like QT or GTK even being able to change the color of
the *whole* editable box would not be possible; colours are managed by the
windows manager. I don't think Java would be an exception to this and you
might be better off splitting your multi-line editable box into several
single-lined boxes with distinct colours. It means you then have to write
some more code, but at least colouring then becomes simpler.
"Utzli Gutzli" <email@example.com> wrote in message
> Hi to all,
> I have a program which uses a GUI. In that interface there is an
> 'edit' text box where the user can enter a (vertical) column of
> numbers. For example:
> After a certain calculation, I want to change the background color
> for some of these numbers. I only found a way to change the
> background color of the 'edit' box, which means to change it for all
> lines. Is there a way to change background color to a certain line,
> and only to that line?
> I will appreciate other ideas as well.