JTable or some other Java table class with advanced cell selection? -
I am using jetties for everything I am doing now. After searching for Java APIs and various web resources, I do not think JTB is going to cut it anymore. What I see is a table for which I can specify very strict selection process. I want to be able not only to choose rows and columns, but also to select the cells in a diagonal direction. Apart from this, I need the full potential to be able to clarify which cells can be selected in any other chamber. For example, if I have a 10x10 table and I am in cell (4, 3) ([row, column]], I want to be able to say, okay, you can choose the following interval from here:
- (4, 3) to (4, 10) <
- (4, 3) to (4, 1)
- (4, 3) From (10, 4)
- (4, 3) to (1
- (4, 3) (10, 10) [oblique]
- ( 4, 3) to (1, 1) [oblique]
- (4, 3) to (6, 1) ) [Diagonally]
Any ideas how can I do this?
It does not seem that you In reality there are a 'table' modeling (JTable table acknowledges semantics and uses a list selection model.) However, I do not think it has been removed far enough from the matrix, if you want to hack JTable code Are ready.
An optional (Yes) component: A japneul that contains the matrix cells. All keyboard / mouse event processing should be handed over to parent zenal. The Satset and would recommend cloning designed Jetebl (data model, selection model, etc.).
So, basically, you will need 3 squares:
JMATICS, JMTrix MODEL, JMTrix selection-board
JMTRICS with the components of your child Expanded zeppel is JMatrixSelectionModel is a class that will implement selection rules. JMTrix should call the selection model on selection programs (registered on matrix cells, which were handed over to the handler on Patrick JMTrix). The data model is quite simple - you can also use the current jettble model.
Comments
Post a Comment