Re: How to scroll a table with a overlaid component



On Nov 7, 6:19 pm, Gregory Miecznik <rgmiecz...@xxxxxxxxxxx> wrote:
My question is related to a typical example in a spread*** where I
can have an arbitrary component ontop of a scrollable table, which
should scroll along with the table.
The position of the overlaid component is arbitrary. A typical example
would be a
spread*** table with a graphical bar.

The position is not arbitrary. Apparently the lable position it
logically anchored at some spread*** position.

Do you know a propper way to do it?

Yes, instead of hacking around, do the whole thing in a more sensible
way. Apply the composite design pattern. Compose the spread*** and
the label into a single JComponent/Scrollable. Place that new
component into the scroll pane.

.