Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / GUI / January 2007

Tip: Looking for answers? Try searching our database.

deleting a checked row from the JTable.

Thread view: 
shiva.rudra@gmail.com - 29 Jan 2007 11:38 GMT
hi all,
      i've created a table(JTable), in which first column is having
check boxes. so my query is,; if i check one or more check boxes from
the table and press delete button, those rows must get deleted. Please
helpme out...

Thanks in advance..
-Shivu
Andrew Thompson - 29 Jan 2007 12:06 GMT
On Jan 29, 10:38 pm, shiva.ru...@gmail.com wrote:
...
>        i've created a table(JTable), in which first column is having
> check boxes. so my query is,; if i check one or more check boxes from
> the table and press delete button, those rows must get deleted.

A 'query' usually implies a question, so a better
way to end that might have been to add..
"How do I do that?" or..
"How do I achieve that?"

In any case, the answer to your query is
along the lines of ..
Remove the record from the JTable's
data model, (then refresh it?).

Andrew T.
Ian Wilson - 30 Jan 2007 17:28 GMT
> On Jan 29, 10:38 pm, shiva.ru...@gmail.com wrote:
> ...
[quoted text clipped - 5 lines]
> Remove the record from the JTable's
> data model,

WHS.

> (then refresh it?).

I'd use fireTableRowsDeleted() after deleting each row or contiguous
group of rows.
Andrew Thompson - 30 Jan 2007 18:34 GMT
> > On Jan 29, 10:38 pm, shiva.ru...@gmail.com wrote:
> > ...
[quoted text clipped - 7 lines]
>
> WHS.

Waverly Hills Sanatorium?  W. H. Smith?
William Hunt and Sons?

I'll buy a vowel..

Andrew T.
Daniel Pitts - 31 Jan 2007 00:52 GMT
> > > On Jan 29, 10:38 pm, shiva.ru...@gmail.com wrote:
> > > ...
[quoted text clipped - 14 lines]
>
> Andrew T.

My guess is "What He Said".
Andrew Thompson - 31 Jan 2007 01:00 GMT
On Jan 31, 11:52 am, "Daniel Pitts" <googlegrou...@coloraura.com>
wrote:
..

...
> > > > Remove the record from the JTable's data model,
>
> > > WHS.
>
> > Waverly Hills Sanatorium?  ...
...
> My guess is "What He Said".

Well it seems perfectly obvious, once you say it!

Andrew T.
Ian Wilson - 31 Jan 2007 09:53 GMT
> On Jan 31, 11:52 am, "Daniel Pitts" <googlegrou...@coloraura.com>
> wrote:
[quoted text clipped - 3 lines]
>>My guess is "What He Said".
> Well it seems perfectly obvious, once you say it!

Yes sorry, WHS is an abbreviation often used in another online community
I use. I overlooked that it might not be part of the c.l.j.* lingua franca.


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.