This week's book giveaway is in the Other Languages forum. We're giving away four copies of Functional Reactive Programming and have Stephen Blackheath and Anthony Jones on-line! See this thread for details.
Problem with clip area occurred when table content is transited
posted 7 years ago
Platform: JavaFX 1.2.1.
Preface: I created my own table because the cell content should be not standart: buttons, progress bars, etc...and text as well.
There is no standart decision for this and simple there is no table control in JavaFx as well (swing JTable in a SwingComponent wrap
doesn't fix the problem - only combo box, check box, text box can be placed into a cell). So, I did the following: I created a sequence
of instances of the Group class. Each instance represents one cell of the table. I put a rectangle (Rectangle class) as a cell visualization
and other controls(buttons, progress bars, text, etc. as a cell content) to each Group instance (cell). All cells in the sequence are located
in rows and columns as in a usual table. and I put this sequence of cells to one common Group. The whole area of all rows and columns is large
so I use the clip variable of the Group class (common Group) and two scrollbars (vertical and horizontal) to transit the rows and
columns. It's simple thing as in a usual table.
Problem description: when I transit a thumb of a scrollbar (whatever horizontal or vertical) part of each border cells appear out of common
Group clip area, i.e. that part of each border cell (as on the left, rigth side of the clip area for horizontal scrollbar so as on the top, botton
side of the clip area for vertical scrollbar) that should be disapeared is appeared over other GUI controls located near this table. I tried to
use ClipView - the problem is reproduced as well. Screenshot here:
http://foto.nnov.ru/psh500/0/86/51/e1/4e/a0/ae/0bd8ef7ebf233614.png Screenshots with bugs: