FeaturesPluginsDocs & SupportCommunityPartners

NetBeans Forums

 FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister   ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
  

VMD Custom Components: Creating Tables 5.5

 
Post new topic   Reply to topic    NetBeans Forums -> Java ME Users
View previous topic :: View next topic  
Author Message
daniel.roller@web.de
Posted via mailing list.





PostPosted: Fri Jan 16, 2009 10:20 am    Post subject: VMD Custom Components: Creating Tables 5.5 Reply with quote

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

PostPosted: Mon Jan 19, 2009 4:18 pm    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    NetBeans Forums -> Java ME Users All times are GMT
Page 1 of 1

 
Jump to:  
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


Powered by phpBB