| View previous topic :: View next topic |
| Author |
Message |
Shiva
Joined: 11 Jun 2009 Posts: 15
|
Posted: Thu Jun 11, 2009 5:59 pm Post subject: Add and Romove row of table |
|
|
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 |
|
 |
Karol Harezlak Posted via mailing list.
|
Posted: Fri Jun 12, 2009 1:51 pm Post subject: Add and Romove row of table |
|
|
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
|
Posted: Fri Jun 12, 2009 6:36 pm Post subject: Add and Romove row of table |
|
|
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  |
|
| Back to top |
|
 |
Jin ju hyun
Joined: 13 Jun 2009 Posts: 2
|
Posted: Sat Jun 13, 2009 10:45 am Post subject: Re: Add and Romove row of table |
|
|
| 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  |
me too....
i want to know that DB connect with netbeans.... javaMe
sorry..
i'm not very well English  |
|
| Back to top |
|
 |
Karol Harezlak Posted via mailing list.
|
Posted: Mon Jun 15, 2009 2:14 pm Post subject: Add and Romove row of table |
|
|
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: | 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
|
Posted: Thu Jul 02, 2009 9:02 pm Post subject: Re: Add and Romove row of table |
|
|
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 |
|
 |
Shiva
Joined: 11 Jun 2009 Posts: 15
|
Posted: Fri Jul 10, 2009 11:10 am Post subject: |
|
|
Hi pakiwebcom,
I wrote add and remove method by myself for simple table model!!! pfff
Thanks for help anyway  |
|
| Back to top |
|
 |
|