permaculture playing cards*
The moose likes JavaFX and the fly likes Problem with clip area occurred when table content is transited Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » JavaFX
Bookmark "Problem with clip area occurred when table content is transited" Watch "Problem with clip area occurred when table content is transited" New topic
Author

Problem with clip area occurred when table content is transited

Naight Naight
Greenhorn

Joined: Sep 23, 2009
Posts: 1
Platform: JavaFX 1.2.1.
Hi all
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:
Initial state:
http://foto.nnov.ru/psh500/0/86/51/e1/4e/a0/ae/0bd8ef7ebf233614.png
Screenshots with bugs:
http://foto.nnov.ru/psh500/0/f8/1c/28/77/b5/79/f53bbc4fd8ba8158.png
http://foto.nnov.ru/psh500/0/3a/95/c3/6c/0e/4f/9aff2e16a544bb37.png

Help please.
Thanks in advance!
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Problem with clip area occurred when table content is transited