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 / June 2005

Tip: Looking for answers? Try searching our database.

fireTableRowsUpdated 0 or 1 based?

Thread view: 
Jaap Zeerijk - 15 Jun 2005 14:56 GMT
Hello,

I've got a short question which is bugging me for a long time:

fireTableRowsUpdated(firstrow, lastrow) is a function of
AbstractTableModel, it notifies the View when a row is updated. It
accepts 2 parameters, firstrow and lastrow.

I'm wondering if the firstrow and lastrow are 0 based or 1 based, for
example:
fireTableRowsUpdated(0, 0)
will this code notify the View that row 1 till 1 has been updated? Or
will:
fireTableRowsUpdated(1,1)
do that? (notify that row 1 till 1 has been updated)

The docs are not very clear about this.

Kind regards,

Jaap Zeerijk
Andrew Thompson - 15 Jun 2005 15:05 GMT
> fireTableRowsUpdated(0, 0)
> will this code notify the View that row 1 till 1 has been updated? Or
> will:
> fireTableRowsUpdated(1,1)
> do that? (notify that row 1 till 1 has been updated)

What do your experiments reveal?

Signature

Andrew Thompson
http://www.PhySci.org/codes/  Web & IT Help
http://www.PhySci.org/  Open-source software suite
http://www.1point1C.org/  Science & Technology
http://www.LensEscapes.com/  Images that escape the mundane

Jaap Zeerijk - 15 Jun 2005 15:13 GMT
>> fireTableRowsUpdated(0, 0)
>> will this code notify the View that row 1 till 1 has been updated? Or
[quoted text clipped - 3 lines]
>
>What do your experiments reveal?

I'm currently using "fireTableRowsUpdated(0, 0)" to update the first
row. That works with me, but several customers have repaint problems.
Now i'm using fireTableDataChanged() and no one has repaint problems.

I don't want my customers to try the other solution
(fireTableRowsUpdated(1,1)) at the risk of unfixing a bug, so i don't
know if that one is working. That's why i'm asking.

Jaap Zeerijk


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.