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 
  

Add and Romove row of table

 
Post new topic   Reply to topic    NetBeans Forums -> Java ME Users
View previous topic :: View next topic  
Author Message
Shiva



Joined: 11 Jun 2009
Posts: 15

PostPosted: Thu Jun 11, 2009 5:59 pm    Post subject: Add and Romove row of table Reply with quote

Hi All,

I'm new in JavaMe and Netbeans.
I would like to have some sample code for adding and removing
row from the table available in Netbean's designer.
Thanks
Back to top
View user's profile Send private message
Karol Harezlak
Posted via mailing list.





PostPosted: Fri Jun 12, 2009 1:51 pm    Post subject: Add and Romove row of table Reply with quote

Did you try this tutorial? It may give you some ideas.

http://www.netbeans.org/kb/docs/javame/tableitem.html

Karol Harezlak

Shiva wrote:
Quote:
Hi All,



I'm new in JavaMe and Netbeans.

I would like to have some sample code for adding and removing

row from the table available in Netbean's designer.

Thanks












--
Karol Harezlak <address-removed>
Sun Microsystems, Inc. NetBeans Mobility
Back to top
Shiva



Joined: 11 Jun 2009
Posts: 15

PostPosted: Fri Jun 12, 2009 6:36 pm    Post subject: Add and Romove row of table Reply with quote

Thanks Karol for reply.
Yes I read this page, however it doesn't have add and rove rows or columns
commands!
Unfortunately, I think the table item is a bit bad coded I'm afraid Sad
Back to top
View user's profile Send private message
Jin ju hyun



Joined: 13 Jun 2009
Posts: 2

PostPosted: Sat Jun 13, 2009 10:45 am    Post subject: Re: Add and Romove row of table Reply with quote

Shiva wrote:
Thanks Karol for reply.
Yes I read this page, however it doesn't have add and rove rows or columns
commands!
Unfortunately, I think the table item is a bit bad coded I'm afraid Sad



me too....

i want to know that DB connect with netbeans.... javaMe

sorry..
i'm not very well English Embarassed
Back to top
View user's profile Send private message
Karol Harezlak
Posted via mailing list.





PostPosted: Mon Jun 15, 2009 2:14 pm    Post subject: Add and Romove row of table Reply with quote

Jin ju hyun wrote:
Quote:
Shiva wrote:

Quote:
Thanks Karol for reply.



Quote:
Yes I read this page, however it doesn't have add and rove rows or columns



Quote:
commands!



Quote:
Unfortunately, I think the table item is a bit bad coded I'm afraid :(

Thanks for feedback, could you provide more information about your problem?

Quote:






i'm too....



i want to know that DB connect with netbeans....



sorry..

i'm not very well English [Embarassed]












--
Karol Harezlak <address-removed>
Sun Microsystems, Inc. NetBeans Mobility
Back to top
pakiwebcom



Joined: 02 Jul 2009
Posts: 1

PostPosted: Thu Jul 02, 2009 9:02 pm    Post subject: Re: Add and Romove row of table Reply with quote

Hello,

Use this code to add or delete row. I use this on netbeans and it works properly.

import javax.swing.table.DefaultTableModel;

-----------------------------------------------------------
DefaultTableModel sc;
sc=(DefaultTableModel) table.getModel();
sc.addRow(new Object[]
{
null,null,null,null
});
------------------------------------------------------------

This make new row for 4 Colums. you use it as you want.
For delete use

sc.removeRow(int);

thanks cheersssssssssssssss now. +92-3235348848
Back to top
View user's profile Send private message
Shiva



Joined: 11 Jun 2009
Posts: 15

PostPosted: Fri Jul 10, 2009 11:10 am    Post subject: Reply with quote

Hi pakiwebcom,
I wrote add and remove method by myself for simple table model!!! pfff
Thanks for help anyway Smile
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