Sorting the Model vs sorting the JTable
So,
now that I'm starting the rewrite of my program, I wanted to avoid as much dependencies as possible from the table component.
This, because my table (SwingX JXTable actually) gave me occasional problems and artefacts.
So, when I want to sort the data in the table, or filter it for example,
would it be faster to:
- sort the data model and reset the data in the table
or
- don't do anything with the model and let the table do the sorting and filtering?
Thanks in advance.
To OP:
Your question is contradictory.
First you want to avoid dependencies "from the table component" (I ssume you mean "on JXTable API"). Then you go on asking what would be "faster".
Other criteria that might be of interest (in addition to "dependencies maintenance" and "speed"), could be:
- memory usage: if you already know to filter, at the model level, your 1-M customer orders table, into a 10-lines summary for the current customer, then obviously you'll gain memory at the view level.
- ease of programming: if all order data are in-memory, and you can switch from one customer to the other, filtering at the view level spares one call into the model layer, and probably one DB call as well. A UI developper will be more confortable.
These are contrived examples, I just want to point out that "it depends" on what are your constraints (interactions, app-specific requirements, staff skill,...).
AFAIC, I don't remember having problems with sorting and filtering using Swing's native RowSorter API (I did shoot myself in the foot because I sometimes forgot to convert indices, view-to-model and model-to-view, in the event handlers, but once you remember that you're safe).
Maybe check on a SwingX forum for the (maybe SwingX-specific) artefacts.
Edited by: jduprez on Jul 13, 2009 7:10 AM
Similar Messages
-
Satellite Pro A300D - What is the model number for the keyboard?
My husband managed to dislodge a keycap on my keyboard, and broke the white scissor clip that holds hit on...(don't ask me how)
He spoke to the authorised service centre here in Norway, and they sent us replacement scissor clips (actually they sent an old non-functioning keyboard) but the clips are of a different design to the ones on my laptop.
I was wondering if anyone has an idea of the model/serial number of the keyboard used in the Satellite Pro A300D-151 (PSAK9E) so I can get the correct replacement part.
I really don't want to have to replace the whole keyboard when it's just 1 of the scissor clips that is broken...the laptop is only 5 months old.
Here are some photos of the scissor clip in question & the where it attaches to the keyboard (sorry about the quality)
Link:[http://img31.imageshack.us/gal.php?g=1000683o.jpg]
Thanks
notsureHi
Sorry buddy but its not possible to exchange some single keys on a keyboard so in this case you must replace the complete keyboard. But normally this should not be so difficult.
Either you exchange the keyboard yourself or you sent the notebook to the authorized service provider.
The model number for the keyboard is not known to me but contact your ASP!! They can order all Toshiba parts and they should know the right part number.
Bye -
What is the model number of the processor used in MacBook Pro 13 inch late 2011 ?
What is the model number of the processor used in MacBook Pro 13 inch late 2011 ?
Click on the Apple logo in the upper left corner of your screen and select About This Mac. Click on the More Info... button and you should see what your processor is.
-
What is the model number of the MAcbook Pro 15inch which i bought in 2011 sometime
What is the model number of the MAcbook Pro 15inch which i bought in 2011 sometime ... ? i want to check whther it supports WIFI - Direct with my sony TV for screen mirrirong
Model Number
A1286 -
What is the model Number for the ipod touch 5g.
What is the Model Number for the ipod touch 5g?
http://www.apple.com/euro/compliance/
http://images.apple.com/euro/compliance/pdf/EU_DoC_A1421_2600.pdf
It was a tough one. -
I'm trying to figure out what is the Model in iOS for the iPod Touch 1st Gen to iPod Touch 3rd gen, also I'm trying to figure out the model number on the back of it, are you able to check the Model in iOS to see what Gen? Or what is that for?
Here you go, http://support.apple.com/kb/HT1353
-
I'm trying to find instructions on replacing the memory module in an older MacBook (1,1). This is the model that has the removeable battery on the back. Anybody know where I can get this info? (It's not listed in the Apple Support info)
Video of the installation here:
http://eshop.macsales.com/installvideos/macbook_13_mem_hd/
MtD -
Does anyone know what the model # is of the current MacBook Pro 15in, 2.3 GHz , 4GB memory, 500 MG HD? Is it MD103LL/A? My MacBook Pro (3 yrs old) was stolen and my ins co found this model at Best Buy for $1799. Want to know if they're same, specs? Thank you!
Yes, it is in the United States and Canada. In other countries, the LL will be something else.
(69778) -
Let me know the Model number of the Linksys Device as the...
Let me know the Model number of the Linksys Device as there are different Power Specifications for different devices ...
HI
check the link
http://www.sapdb.org/7.4/htmhelp/48/0d8018b4f211d2a97100a0c9449261/content.htm
Format
EUR
'DD.MM.YYYY'
INTERNAL
'YYYYMMDD'
ISO/JIS
'YYYY-MM-DD'
USA
'MM/DD/YYYY' -
My iphone is described as iPhone 4s on the back, but the model number on the back is A1332. IThe device cannot be recognised on by itunes for windows. any suggestions?
Any chance someone had it repaired somewhere (i.e. not by Apple) - maybe had the back glass replaced by a 3rd party shop at sometime?
Dose the phone have siri (iPhone 4 would not)? Does the camera have face recognition and panoramo (again, iPhone 4 would not)?
If everything else checks out as iPhone 4s, then I'd guess the back glass was damaged and someone got it replaced.
In order to get it recognized by iTunes, you may need to plug it in and force it into recovery mode, see
http://support.apple.com/kb/HT1808 and then restore it as a new device. -
I need the model number for the iPod Touch 4th Generation 16GB. My granddaughter's will not turn on and the back is too worn to read the model number. Need for warranty request. Thanks
Model Number
A1367
Order Number
MC540LL/A (8 GB Black) ME178LL/A (16 GB Black) MC544LL/A (32 GB Black) MC547LL/A (64 GB Black) MD057LL/A (8 GB White) ME179LL/A (16 GB White) MD058LL/ (32 GB White) MD059LL/A (64 GB White) -
What is the model number of the unlocked iPhone 5s sold in hong kong?
Under apple's tech spec section they show 4 model numbers for Hong Kong but don't indicate which one is the unlocked version - the way they show data is very confusing - even if you put the phone in your shopping cart it shows a different "part number" than the model numbers shown for hong kong. I'm trying to compare bands and frequencies as I live in mainland China, and will be headed back to the US to live in about a year.
Thanks, but still I need to know what is the model number (written on the Back) of the unlock iphone 5S that sold in UK?
-
What is the model number for the iPad mini Wi-Fi only
I Can't find the model number for my iPad mini Wi-Fi only version can you write down the model number in your response thank you
A1432.
Source: http://support.apple.com/kb/ht5452 -
What is the model number for the most recent Apple TV devise ???
What is the model number fo rthe most recent Apple TV devise ???
Apple TV 3 (A1469 - AppleTV3,2 - MD199LL/A)
-
Hi
i want to ask for some model of the ipad Air/mini retina that could be warranty in Vietnam ?
i did call to the apple center in vn but they refused to provide the model number that will have warranty support
thanksYou can ask, but only Apple can decide how to address your complaint.
If the problems are related to each other it would seem reasonable to request a complete replacement, but no one here can speak on Apple's behalf.
Maybe you are looking for
-
How to desable default close icon in jtree
how to desable default close and open icon in jtree.
-
Show in Explorer option not working
Recently started using Lightroom. But I have a problem. When I right click on a picture and select Show in Explorer nothing happens. Any ideas much appreciated.
-
Why is the text box acting so weird??
I am trying to do something simple that I've done a million times in Photoshop CS5 -- create a text box with some text inside. But something is going wrong and I can't quite figure it out... Notice how the text box is now much larger than the text di
-
Transport Basics: Can you explain this to me?
Hello Experts, In Transport Organizer: Requests (se09), I double clicked on a Transport request and I could see a display of the Transport Request number (Request/Task: BWIK ..) and 3 tabs (Properties, Objects, Documentation). 1. Under Objects tab I
-
Subscription, change, one product to creative cloud, education staff
I have a current 12-month commitment for Dreamweaver. I received an e-mail about Creative Cloud for teachers and students at $19.99. My questions: Can I upgrade my subscription from Dreamweaver to CC? As a staff member ([email protected]) can I get t