JTable Moving Columns and keeping the index for re-display

I have a JTable with data. The data in the table is refreshed every two minutes. The user is allowed to move the columns around, but when the refresh happens, the columns go back to their original layout. I have a TableColumnModelListener attached to the table and I know that there is a columnMoved method and I can capture the the "toIndex" but where do I set this new index in the model?

The TableColumnModel controls the ordering of the the Table columns.
When you use the setModel(...) method the fireTableStructureDataChanged() event is fired. This causes the TableColumnModel to be recreated. However you can turn this off, assuming the structure of the TableModel is the same, and only the data has changed. After creating the table the first time you can use:
table.setAutoCreateColumnsFromModel( false );

Similar Messages

  • I have a license for Indesign CC for one month and my laptop just broke, Can I download it again to my PC and keep the license for the rest of the month?

    Hi all,
    I have a job to do and the laptop that my boss provided me is giving a lot of problems...I really need to change to my PC and finish the job. I don´t know if i can download again the license from creative cloud and keep on working there.
    Any suggestions?
    thanks a lot!

    Yes.
    Mylenium

  • Ungroup a group and keep the scriptlabel for each item of the group

    Hi
    does someone know how to ungroup a group of rectangles with a certain label (example groupA) an give each rectangle a own label (the same text groupA)
    I can find the group and ungroup it but I can't label the rectangles...
    var oPageItems = app.activeDocument.allPageItems;
    for (var j = oPageItems.length-1;  j >= 0; j--) {if (oPageItems[j].label==("groupA")) {oPageItems[j].ungroup();)
    Please help

    Hi,
    before
    oPageItems[j].ungroup();
    go into the loop and set proper label to each item inside group:
    for (var k; k < oPageItems[j].length; k++)
    oPageItems[j][k].label = "groupA";
    assuming your oPageItems[j] is a group indeed.
    hope...

  • Rikaichan (add-on) doesn't work at my office. It gives this error "Javascript application: the index for one or more dictionaries needs to be created. This may take a while on slower computers". And then the PC freezes. What should I do?

    I'm using Firefox 3.6.17, and have installed Rikaichan 2.02. Once I've installed the Japanese-English dictionary, I then click on Rikaichan to get it started, and it always gives a "Javascript Application" error:
    '''"The index for one or more dictionaries needs to be created. This may take a while on slower computers"'''
    Rikaichan always works fine on my laptop, but I just can't seem to install it properly at work. Is there some sort of office security screwing it up?

    venicespent,
    Boot into your Mavericks Recovery partition by hold down the command and R keys whilst booting. You'll see a screen that looks like this:
    Click on the Disk Utility item to open Disk Utility. You should see your boot drive (usually named "Macintosh HD" unless you've changed it) in the column on the left of the screen. Select your boot partition and click on the "Verify" button. Let your Mac do it's thing - if you get green text telling you that everything seems to be OK, then your disk should not be damaged. If, however, you get red text telling you that the disk needs to be repaired, click on the "Repair" button. If the disk can be repaired, you should be good to go. If the disk cannot be repaired then the drive is damaged.
    But before you do anything, make certain that you have backups!!!
    Clinton
    MacBook Pro (15-inch Late 2011), OS Mavericks 10.9.4, 16GB RAM, 960GB SSD, 27” Apple Thunderbolt Display

  • We have developed a desktop application using Flash software and published the same for MAC environment. When we double click on the index.app file, the application is working perfectly in Mac 10.6.7 at our office. But if the same index.app file is double

    We have developed a desktop application using Flash software and published the same for MAC environment. When we double click on the index.app file, the application is working perfectly in Mac 10.6.7 at our office. But if the same index.app file is double clicked in Mac 10.6.7 at out clients location, its not opening. For your information the client is able to open this same application by double clicking on index.swf file. The main problem is that client is not able to open the application using index.app file at their office whereas we are able to do so at our office. Can anyone give some suggestions to sort this problem?

    The most common reason is different versions of Flash, or different versions of web browsers used.  Some users may elect to not have Flash installed at all because of the processor overhead of Flash.  If you are going to make an application for a client, check what operating system and browser versions they are using first.  Then determine if a stand alone application is required, or if they have the necessary plugins to run specific browser enhanced code.
    P.S. MAC is an acronym for Media Access Control.  Mac is the shorthand for Macintosh, the operating system and computers made by Apple Inc.

  • Is it possible for automator to convert all word documents in my dropbox folder to apple's "pages" on iCloud and keep the same folder organization?

    Is it possible for automator to convert all word documents in my dropbox folder to apple's "pages" on iCloud and keep the same folder organization?  I am a teacher and want to switch from using microsoft office on my macbook pro to using pages/number/keynote.  I am hoping to get an iPad next year and go "paperless" with lesson plans and gradebooks and I heard that pages/numbers/keynote are great on the ipad.  I'd like to write an automator script (workflow?) to convert all my documents in dropbox to pages and have them stored on iCloud, then be able to access the files on my macbook pro and ipad.  Thanks!

    Create an AppleID under different email addresses for each family member at http://appleid.apple.com
    If they don't already have their own email address just setup a free one with Gmail, Yahoo, Hotmail or whoever you prefer.
    Then on each device sign into iMessage with the users own AppleID in:
    Settings > Messages > Send &amp; Receive > Tap AppleID at top > Sign Out, then sign back in again with the correct AppleID.

  • How can I take a screen shot on the iPad Air and keep the resolution at 2048 x 1536. For some reason when I'm in an app it reduces the resolution

    How can I take a screen shot on the iPad Air and keep the resolution at 2048 x 1536. For some reason when I'm in an app it reduces the resolution

    Tatanka11 wrote:
    I'm new to Mac,...
    Then...  You may find these Links of Interest and Value...
    Show me how to set up my Mac.
    http://www.apple.com/support/mac101/
    http://www.apple.com/support/switch101/     Switching from PC
    http://www.apple.com/findouthow/mac/
    Enjoy your Mac...

  • Moving and Tilting the Camera for an optimum Lens Profile Creator image set

    When framing the chart in different areas of the image frame, use a combination of physically moving and tilting the camera to achieve an optimal balance for LCP generation.
    The following two passages are from the AdobeLensProfileCreatorCalibrationChartShhtingGuide.pdf
    Page11/a -Move camera a bit to the left (so that when turning to the right to face the chart, it is about 10 to 30 degrees). Take a series of shots similar to the first three, above, except that the chart is framed at the center-left, top-left, and bottom-left areas of the image.
    v. Move camera to the right, and do the same for the center-right, top-right, and bottom-right areas of the image
    pg11/e - When framing the chart in different areas of the image frame, use a combination of physically moving and tilting the camera to achieve an optimal balance for LCP generation.
    i. Only moving the camera to frame, so that image plane stays perfectly parallel to the chart, can have an adverse affect on LCP calibration data.
    ii. Only tilting the chart may cause depth-of-field issues, where part of the chart may go too far out of focus due to the large angle of the chart in regards to the image plane. This can also have an adverse affect on LCP calibration data.
    Does this mean to center the camera with the center/center shot so that the film plane is parallel with the calibration grid, then only use camera tilt on the tripod up and down for the top center an bottom center image. Then move the camera/tripod left (so that when turning to the right to face the chart, it is about 10 to 30 degrees) AND also pan the camera left to shoot the left top center and bottom image.
    I think this combination of instructions have me stuck. Move left but not so much that the calibration target image is parallel with the film plane then pan the camera to get the desired framing.
    Would I be correct to say - move left until the angel to the calibration image is 10-30 degrees and then use camera pan on the tripod to get the image framed properly. ... Is the desire to move as little as possible, or pan as little as possible, or to balance moving and panning in some way. 
    I am profiling a Nikon D7000/TAMRON 11-18mm F/4.5-5.6 lens and have a large target 36"x48" and read that I should shoot at minimum focus distance, 3x minimum, and 5x minimum which equates to 9.8 inches, 29.4 inches and 49 inches... I use this combo to shoot home interior shots at an focal distance of more like 10-20 feet from surrounding walls.. would I also need shots at (120 inches?) 10 feet?
    I really (really) want to get the distance to subject and camera moving/pan combination right.
    Please help. 

    There are a number of things darks/flats/bias can't remove: curvature, coma, pincushion, chromatic aberration. Some of those (pincushion i.e. showing stars on the chip in a slightly different position from their true position) may or may not be correctable with this sort of an app. It's possible using outside data (comparing the star locations in the image to their true locations in a catalog - that's a common astrophotography measurement and only takes seconds). Correcting curvature (differing focus off axis) chromatic aberration and coma (distorted star shape off axis) seem just what this app is about.
    Printing a checkerboard on a nearby hill top sounds involved. Maybe I could get them to plough it in a regular pattern? :-)
    The camera does not capture the data you mention. The images are usually in FITS format which has an enormous amount of data about the focal length, exposure time, amount of atmosphere through which you are looking, etc.
    Calculating from the book value for the lens(es) camera chip etc would likely not be give a better result than the value obtained before correction. In some designs of scopes, particularly the most common ones, the focal length changes as you focus for example. The lenses and mirrors, comparing one scope to the next, are not perfectly identical.
    But a dense star field would be something against which you could measure changes in star shape, focus, chromatic aberration and possibly even position. Once you figured out the parameters for your particular scope+corrector lenses+camera setup you could then use that profile thereafter.
    I'd love to chat with that engineer  I had heard you have one person who got a Meade SCT and started astroimaging just to learn the things we need and most astroimagers do use photoshop.
    Drew S.

  • Got a new iPhone that I've been using for about a month now, so the question is how can I get the pictures from my old iPhone and keep the pictures I have on the new iPhone?

    Got a new iPhone that I've been using for about a month now, so the question is how can I get the pictures from my old iPhone and keep the pictures I have on the new iPhone?

    Connect old iPhone to computer and save the pictures on computer.
    Connect new iPhone and sync the pictures to your new iPhone.

  • I have working Netgear network. Want to add new Time Capsule and run 2nd network for new apple TV and Imac, and keep the netgear network for my PC and Canon printer.

    I have working Netgear N600 dual band router network. The existing network has an XP netbook PC, canon printer, 2 Iphones, Epson Air printer, an Ipad, 3 roku boxes, backup drive. Just bought a new Apple TV box, and time capsule 2T.  I have an IMac on order but don't have it here yet.
    My goal is to add new Time Capsule and create 2nd "apple" network for new apple TV, Iphones, Ipad, Epson Air printer and new Imac, and keep the netgear network for my PC, Roku TV boxes, and Canon printer and backup drive.
    The Netgear router, the time capsule and new IMac will be on the same desktop, I dont need to backup my netbook PC to time capsule.
    Where do I start?
    Which device connects to my modem first, the TC2 or the Netgear?
    Is it best wait for the Imac before starting or can the TC2 be set up from my Ipad or PC?
    Thanks.

    It is pretty simple..
    Setup the TC in bridge and plug it into the Netgear.. I would leave the netgear as the main router for now, although in the future you can swap things around. The netgear firmware may have issues with bonjour and airplay/airprint?? Does your ipad print ok now?
    You can setup the TC using Mac, PC (at least up to win7) or iOS.. they all have airport utility available.
    Bridge mode is set differently depending on the version of the utility. This is v5 and how the windows one will look (at least similar to).
    v6 will be as
    With the TC in bridge you will still create a wireless network.. and give it a different name from the netgear.. then all the apple devices can connect to it. Use ethernet rather than wireless if the imac is on the desktop with it. Much faster and better for using Time Machine backups.
    If you run into any issues.. just post the particular issue. It will take a bit of getting used to, but isn't hard.

  • I bought my wife a 5c for xmas and set it up under my itunes id. She didn't have one. Every so oftem my ID still shows up under different aps. I set her up an apple id now and want to reset everything to her ID. How do I do it and keep the apps?

    How do I switch this phone over to my Wifes new Apple ID and keep the phone lists,, apps etc that I set up? (unlocked) New

    You must first go to your Apple ID and take the device off of your listed devices and then wait until it is updated accordingly ...Next link the iPhone to her Apple ID.  go to the app store and on to 'featured' scroll down to the bottom and it shows your apple id, click it and sign out and you can then sign in with your new apple id
    If you mean your iCloud ID, go to Settings>iCloud, tap Delete Account, then sign back in with the ID you want to use.  If you are signing back into the same account, just with a renamed ID, choose Delete from My iDevice when prompted.  Your data will be synced back when you sign back in.  However, if you are changing to a new account with a new ID and need to migrate your synced data to the new account, choose Keep on My iDevice when prompted.  Then choose Merge to upload your data to the new account when you sign back in and turn on your iCloud data syncing.
    If you want to keep your photo stream photos, save them to your camera roll before deleting the account (tap Edit, tap all the photos, tap Share, tap Sae to Camera Roll).

  • Is it possible to transfer music onto my mac from my old computer (windows) and keep the amount of plays I had for each song?

    I have listened to some songs on my old computer 250+ times and I just really dont want to lose all of those plays when I move laptops. Is there any way to move my music onto this computer and keep the amount of plays I had?

    http://support.apple.com/kb/PH12145

  • Errors in the OLAP storage engine: An error occurred while processing the indexes for the partition of the measure group of the cube from the database.

    Errors in the OLAP storage engine: An error occurred while processing the indexes for the partition of the measure group of the cube from the database.
    I have dropped and recreated a fact table to refresh the data as the table is having identity columns. So not able to directly insert data. After that cube is throwing above error.
    Please suggest.

    Hi Md,
    It hard to analyse the issue base on the limited information, Are there any error message on the log? Under C:\Program Files\Microsoft SQL Server\MSAS11.\OLAP\Log (this could be different for your server), there are 3 log files that are generated:
    msmdrrv.log
    FlightRecorderCurrent.trc
    FightRecorderBack.trc
    The msmdrrv.log simply points to the other two logs. There might be some detail information for this error. Please provide us the detail information about it, so that we can make further analysis.
    Regards,
    Charlie Liao
    TechNet Community Support

  • Do I need to keep the box for my iMac?

    Hi, does anyone know if there is anything in the Apple Care agreement or any other aspect of my warranty that requires me to keep the box for my iMac, will I ever have to send it back to Apple or will they always send an engineer out to it?
    The box is huge, it will not go through the hatch into the loft and I am fed up of moving it about in my garage.

    Yes, I am trying to find somewhere to store it.
    Is it ever likely that to get a repair for my iMac that apple would ask want it shipped back to them, in which case I would need the box?

  • My macbook Pro 13" 2013 has a mouse problem, its not moving naturally, and keeps on moving around like its dancing. Please help solve this!!

    My macbook Pro 13" 2013 has a mouse problem, its not moving naturally, and keeps on moving around like its dancing. Please help solve this!!

    Go step by step and test.
    1. Restart
    2. Shut down the computer.
        Clean the trackpad with moist not wet microfiber cloth.
        System Preferences > Point & Click
        Try turning off three finger dragging and then turning it on after  testing.
    3. Is there any Bluetooth device nearby with failing batteries? If so, replace the batteries.
      4. Reset PRAM:   http://support.apple.com/kb/PH14222
    5. Reset SMC.     http://support.apple.com/kb/HT3964
        Choose the method for:
        "Resetting SMC on portables with a battery you should not remove on your own".
    6. Close all windows and quit all applications.
        Click the Spotlight -the magnifying glass icon- in the menu bar. Enter Disk utility in the box.
        Select Disk Utility from the drop down. When the Disk utility window opens up,
        select  Macintosh HD, then First Aid.
        Click Repair Disk Permissions button.
        Ignore the  time remaining estimate.
        Last 1 minute may take longer.

Maybe you are looking for