need to create editable SWT table showing contents of a TreeMap......
posted 7 years ago
I'm currently trying to work through my Java certification and at the same time do some hobby developing, to put into practice what I'm learning through the books. I've been at it most of this year, have recently confortably passed my SCJA, am planning to kick on with the SCJP, and have a half-finished Java project on the go.
My project has stalled recently, and after a couple of months of trying different approaches, and learning loads, I'm afraid I need your help (o:
- I currently have a SWT TabFolder, which contains a Composite.
- I also have a TreeMap, which has date objects as keys (date string available through one of its methods), and int's as values.
I need a way to represent the dates and int's together in a table, where the int's are editable, but the dates are not. I need to be able to add the table to my SWT Composite. I also need changes made in the table to be reflected in the source TreeMap.
If anyone can make some suggestions, as to how this should work - which classes I should use, and which methods I should invoke, I would really appreciate it.