| View previous topic :: View next topic |
| Author |
Message |
daniel.roller@web.de Posted via mailing list.
|
Posted: Fri Jan 16, 2009 10:20 am Post subject: VMD Custom Components: Creating Tables 5.5 |
|
|
Hello,
I have a problem with TableItem. The programme receives data about Bluetooth and should
write measured data in a table. I pass the new values to the SimpleTableModel. The values
will also pass. I have checked this. Then I call the function fireTableModelChanged ().
The new values are not indicated into the table. Afterwards I have looked at the class
TableItem and have noted which was commented out with the function tableModelChanged
repaint () instruction. Therefore, the table is not drawn anew. I cannot call repaint also
by hand. How do I do it that the table is anew drawn?
Yours sincerely, Daniel Roller
----
Submitted via the contact form at: http://www.netbeans.info/appl2//index.php
Referer page: http://www.netbeans.org/kb/55/custom-tableitem.html |
|
| Back to top |
|
 |
Pada
Joined: 18 Jan 2009 Posts: 6 Location: Stellenbosch, South-Africa
|
Posted: Mon Jan 19, 2009 4:18 pm Post subject: |
|
|
Copy the tableItem.java file into your own project (keeping it in its original package) and then uncomment the repaint(). The order of the compilation should be that your tableItem.java file overrides the one in the NetBeans library! Thats exactly what I've done in my project.
I've also had to include a basic pointerPressed & pointerReleased function so that my table functions nicely with touchscreens. Do you know where to report these modifications/bugs?
Regards
Chris |
|
| Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum You can attach files in this forum You can download files in this forum
|
|
|
|