JTable question (last edit before close problem)

Hello all,
I have a simple looking problem. It's a JTable inside a dialog, but I can't get exactly the behaviour I want, that is, when the user edits a cell and, without pressing enter or selecting another cell, clicks "OK" (and the dialog hides) the editing should end and the value that was entered to get to the model.
If I show the dialog again, the editing of the cell is still there, and the value is not updated (neither of course shown with a cell renderer)
How could I finish programmatically the editing of a cell, and the result be the same as the user pressed enter or so?
Very very much thank u

It seems I posted this too early, sorry!
I found an answer in
http://forum.java.sun.com/thread.jsp?forum=57&thread=204066

Similar Messages

  • Hi All, I have question about the iMac operating system. I have the last updated. The problem when I manage the place of the folder windows they are all mixing up. I mean they not on the place where I left them. how to set they stay on the same place. Tks

    Hi All, I have question about the iMac operating system. I have the last updated. The problem when I manage the place of the folder windows they are all mixing up. I mean they not on the place where I left them. how to set they stay on the same place? I know there are different possibilities to set.
    I tried but it not helped for me. What I can do? How and where can set this they stay on their place?
    Thanks.
    laci

    Option 1
    Back Up and try rebuild the library: hold down the command and option (or alt) keys while launching iPhoto. Use the resulting dialogue to rebuild. Choose to Repair Database. If that doesn't help, then try again, this time using Rebuild Database.
    If that fails:
    Option 2
    Download iPhoto Library Manager and use its rebuild function. (In Library Manager it's the FIle -> Rebuild command)
    This will create an entirely new library. It will then copy (or try to) your photos and all the associated metadata and versions to this new Library, and arrange it as close as it can to what you had in the damaged Library. It does this based on information it finds in the iPhoto sharing mechanism - but that means that things not shared won't be there, so no slideshows, books or calendars, for instance - but it should get all your events, albums and keywords, faces and places back.
    Because this process creates an entirely new library and leaves your old one untouched, it is non-destructive, and if you're not happy with the results you can simply return to your old one. 
    Regards
    TD 

  • HT2693 i am downloading a software update, but at the last moment before it finishes, it says in order to continue, please close the following application: safari, and the application is closed, what do they mean, and what should i do?

    i am downloading a software update, but at the last moment before it finishes, it says in order to continue, please close the following application: safari, and the application is closed, what do they mean, and what should i do?

    You should close safari.

  • PSE 9 opens last edited image when launched

    Hi
    I'm new to PSE 9 (running on an new iMac and Mac OS X 10.7.2).
    This is my problem: After launching PSE 9, the application opens the last image I edited before I closed the application.
    To make it clear:
    1. I edit an image in PSE 9 and save it.
    2. I close PSE 9.
    3. I launch PSE 9 again.
    4. PSE 9 opens this last image again without being asked to do so.
    Is this normal? Is there a way to avoid this?
    Thank you for your help!
    Best regards
    Carlo

      Try dragging out the tab containing the image; so that it floats.
    Then drag the triangle corner at the bottom right - you can cover a big part of the screen real estate whilst still keeping the tools pallet and menu bar visible.
    You can also click Edit à Preference à General
    Then check the item Zoom With Scroll Wheel
    That will let you fill or reduce the window contents quite quickly.
     

  • Is there a way to prevent Elements from autoloading the last edited file on startup?

    Every time I start Elements I have to wait for it to autoload the last edited image before I can do anything. Is there a way to turn this off?
    I'm on a MacBook Pro running the current system 10.9.2 with 8 GB ram, 2.93 GHz Intel Core 2 Duo.

    If you go to System Preferences>General and check Close windows when quiting an application, does that work?

  • Need help serializing an AbstractTableModel for a JTable with cell editing.

    Fun times are ahead. Here we go!
    I have a JTable that contains data I'd like to serialize out to a file to be restored and viewed later.
    So I tried saving the AbstractTableModel subclass out to a file. Whenever I do this, I get the following error message:
    java.io.NotSerializableException: javax.swing.JTable$CellEditorRemover
    Now I know for fact that serializing an AbstractTableModel that was installed in a JTable without cell editing works just fine (my old code did exactly that). As a result, I think that the code that handles events in the AbstractTableModel contains references back out to the JTable, which causes the JTable to be saved no matter what (even though I'm just interested in saving the TableModel only). It causes a bigger file than normal, but file size is not an issue. The only issue I have is that CellEditorRemover (an undocumented inner class of JTable), which is automatically installed for JTables with editable cells, is not serializable.
    This leads to the following questions:
    1. Is there a way to avoid serialization/deserialization of the CellEditorRemover inner class of JTable?
    2. Is there a way to save an AbstractTableModel without saving all of the event listeners associated with it?
    I think an answer to either of these questions would go a long way towards solving my problem. Otherwise, I'll resign myself to weeping silently in the corner of my office.
    Thanks!

    I would suggest that if you can you only save the
    data... but i would do this by using the
    externalizable interface.
    What you will need to do is have the
    writeExternal(ObjectOutputStream out) and
    readExternal(ObjectOutputStream out) methods in your
    class. These will be responsiable for saving the
    data.
    Here's an example of what you can do in these
    methods... this is just a little tidbit from a program
    i've written.public void writeExternal(ObjectOutput out) throws
    IOException {
              out.writeInt(size);
              out.writeObject(drawName);
              out.writeInt(playersLength);
    for(int i = 0; i < playersLength; i++)
    ) out.writeObject(players);
              out.writeInt(seedsLength);
    for(int i = 0; i < seedsLength; i++)
    ) out.writeObject(seeds[i]);
              out.writeInt(drawLength);
    for(int i = 0; i < drawLength; i++)
    ) out.writeObject(draw[i]);
    public void readExternal(ObjectInput in) throws
    IOException, ClassNotFoundException {
              size = in.readInt();
              drawName = (String)in.readObject();
              playersLength = in.readInt();
    for(int i = 0; i < playersLength; i++) players[i] =
    = (String)in.readObject();
              seedsLength = in.readInt();
    for(int i = 0; i < seedsLength; i++) seeds[i] =
    = (String)in.readObject();
              drawLength = in.readInt();
    for(int i = 0; i < drawLength; i++) draw[i] =
    = (String)in.readObject();
    You can now use your class as you would a Serializable
    class, but it will only save the data
    Hope this helped
    webaf409java
    I forgot to add some critical information in my original post. My apologies. :(
    I've thought about using Externalizable, but am hesitant to use it because the application would no longer be able to read in files using the old save format (ie, AbstractTableModels for JTables without CellEditorRemovers ).  I want to preserve the ability to read the old saved AbstractTableModel formats if possible. 
    Do you know of a way to revert to the default deserialization mechanism from readExternal?  This way, during deserialization, I could do a quick test on the object being read and have the ability to default to the regular deserialization mechanism if the object is of the old type or continue with the new Externalizable stuff if the object is one of the new type.  Maintaining file compatibility is key.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

  • Freenx - session close problem.

    After last update i have little problem, what is shown on picture below.
    http://i53.tinypic.com/2ns8ear.jpg
    There is nothing on the exit screen and choosing action (close/leave session) dialog. I've reinstalled NXclient with no effect. Thank you in advance for help.

    I was seeing the same thing on my setup at home for a while. I was suspending the user from the cli.  It was a nuisance but it was just my home machine so I didn't bother with it too much. It would have been a real pain if it was a deployment at work. I created a launcher with the command in it and then decided to go looking for the answer.
    I've used freenx on other setups (FreeBSD, Ubuntu, etc.) so I know the popup uses either xmessage or xdialog depending on the setup. I had neither installed so I installed xmessage but that didn't fix it. I then installed xdialog and now it works like it's supposed to.
    I just noticed that we are both using XFCE4 and wonder if maybe it's xfce thing or if there's not a lot of Arch users using FreeNX (or haven't gone to the affected update yet).
    Last edited by Strog (2010-11-09 15:00:01)

  • Lost all edits before 2010

    Hello,
         I have been a Lightroom user 2008 and am currently using version 5.7. I recently went to look at some images from 2008 and 2009 and they have all lost the edits I have done to them. However, from 2010 to present the edits are intact. I never lost or changed the catalog and I have been religious in doing catalog backups. I even opened some old backup catalogs from 2012 but they still don't contain the edits from 2008 and 2009. When I first try to open these old pictures, they show up with the edits for only a split second and then revert to the original raw (nef) file appearance. Has anyone else run into this problem before. I tried searching for an answer but have been unsuccessful. Thanks in advance.
    Greg.

    This may have been discussed, above, already...  Did you have LR set to write settings to XMP metadata automatically?  If so, the XMP would have a snapshot of the last settings you applied to the image, and you could re-read from XMP files and get that snapshot of settings back. 
    If you do have XMP files for the old photos w/o history, the first thing to do is temporarily turn off auto-writing of XMP settings so it doesn't overwrite the old settings with nothing.  Auto-XMP writing is a catalog setting so you have to turn it off for each catalog you open.
    The make a copy of your catalog and make a copy of the XMP files (or the images themselves, i.e. JPGs, if they aren't raws) and then as soon as you open the catalog and switch to a folder, initiate a Read Metadata from Files operating in Library with your images selected, and see if the last edit comes back.

  • ONE LAST HURRAH: Before saying Goodbye to my Beloved MSI Eclipse!!!

    I already posted this  article  in the motherboard thread but seems like this is the best place to post this
    ONE LAST HURRAH: Before saying Goodbye to my Beloved MSI Eclipse!!!
    Well it has been two months since I purchased this MSI Eclipse SLI board and while waiting for its bigger brother MSI Eclipse Plus, I would like to try out a new board from another manufacturer. Before I pass this board to its new owner, I decided to give it a little review to so that other people who will be upgrading to i7 platform will have some idea how good or how bad this board is.
    A few months ago and maybe until now, Eclipse is the flagship board of MSI in terms of i7 based motherboard. Its bigger brother MSI Eclipse Plus has already been sighted in some forums but no definite date yet on when it will be available in the market.
    The Box
    The size of the box was way bigger than my old P45 motherboards. It is actually almost 2x the size of the conventional ATX board box. 
    Upon opening the panel on the box, you will see a lot of information about the board! You will also see the added stuff from MSI like the Green Power Genie as well as the awesome Creative Xfi! Yes, a creative Xfi Extreme Audio PCIe sound card was included on the package.
    Upon opening the box, you will see a plastic container (I am assuming that this is anti-static) that contains the motherboard, DLED2, Green Power Genie and creative X-fi.
    There’s another box that contains a lot of stuff! MSI is as usual generous in giving their customers all the things the need to fully populate the board. This includes the  cables needed to populate all the sata and ide slots,  cross fire and SLI cable, additional USB bracket, ESATA bracket and the M connectors. All the manuals needed to setup the boards are also included.
    The Board and Layout:
    The board for me is pretty sexy!  It comes with a black PCB. The RAM slots and the other expansion slots are only blue and black in color which is a perfect combination for an intel based platform. The IOH and the ICH10R is actually covered by a copper heatsink with heatpipes connecting them. Well, personally I do not like this design since I do know that x58 generates a lot of heat. The VRMs also come with a copper heatsink but no heatpipe . As far as I understand from the box information, this is MSI’s split thermal design as well as protection from warping.
    MSI also provided 6 RAM slots and they come in blue and black sockets. Do yourself a favor by putting the ram in the black slots. I previously ran into problems of the system hanging in “ DDR ini “ and later found out from reading the manual and searching the web that the black slots should be populated first.
    The board came with 10 sata ports! 6 of them in 90 degrees are connected to the ICH10 and the 4 are actually by the jmicron chips attached to the board and also function as
    HW raid. Connect 2 HDD on sata 7 and 8 or sata 9 and 10, do some stuff in the BIOS and you are all set to run the system in raid 1 (mirror) or 0 (stripe). I have had no chance to test the raid 0 + 1 since I don’t have 4 identical drives.  It also comes with an IDE slot for your old parallel IDE HDD and/or ODD.
    The expansion slots come with 3 pci x16 slots, 2 pci and 2 pcie x1 which I believe is more than enough to suffice your daily needs. The bottom part of the board came with a power, reset and dled switch along with MSI’s OC jumper.
    The back panel is not that good looking. Well it’s the same back panel style of their P45 series board. It doesn’t matter anyway since it is at the back of the chassis and what concerns me the most is functionality. The board came with 8 usb ports at the back, 2  Gigabit lan, 2 esata ports, a 1394 connector, a cmos reset switch and the conventional PS/2 ports for mouse and keyboard.
    Bios and overclocking
    I  just captured the most important portion on the bios which is the Cell Menu. It is the overclocking tab on MSI’s BIOS
    Overclocking and Benchmarking Results
    Since I have not installed anything yet on my new board, I decided just to compare the stock and overclock result from this board.
    Below are the lists of components that I will be using
    Intel Core i7 920 2.66ghz  ( cooled by Thermalright HR 01 plus )
    MSI Eclipse SLI – Beta BIOS 1.45
    MSI 8800gtx (well a bit old but still reliable)
    Team Extreme ddr3 1600 @ 8-8-8-25 rated 1.65V
    Western digital Raptor 74gb 16MB cache
    I tried setting up this board one last time on my  DIY open system  using the components above. And Good thing that my ever energetic and reliable  assistant is always there to help … hahahaha
    SPI Stock and 4Ghz OC  Results
    Stock =  15.313s
    4Ghz = 10.405s
    PC Mark 05 Stock and 4 Ghz OC Result
    Stock = 9745
    4Ghz = 13136
    3DMark 05 Stock and  4Ghz OC results
    Stock = 13388
    4Ghz = 14289
    3DMark vantage Stock and 4Ghz OC Results
    Stock = 8160 ( 33530 on CPU score )
    4Ghz = 8315 ( 43567 CPU score )
    Aquamark Stock and Overclock
    Stock = 131812 ( 18685 CPU score )
    4Ghz =  179261 ( 23139 CPU score )
    I tried playing with bclock  since I have seen people in several forum saying that their boards( not specific to MSi eclipse ) / i7 proc cannot go above 200 or maybe just above 200 bclock. After doing some tweak I was able to get 215 bclock and the max I was able to get is 218,  All the test that had been done are just after vista installation. No tweaks done  on windows.
    SPI = 10.343 ( 19 x 215 )
    SPI = 10.030s (  19 x 218 )
    Wrap-up / Conclusion
    I really don’t want to let this board go but I don’t have extra budget to buy and try new boards from other manufacturer so that I can compare the result. So right now I am stuck with selling this just to buy another x58 board (of which I will try to post a mini review soon)
    I did encounter IOH temperature issue when I first bought this motherboard. IOH temperature is at 65C and this still goes up while running benchmarking tests. I made minor modifications on the board and as far as I know, it did not void the warranty. Below are the modifications that I have made:
    1.   Removed the violet thermal paste that MSI used and replaced it with Artic Silver 5.
    2.   Removed the plastic pushpin and replaced it with a bolt and plastic nut.
    3.   Added a 40mmfan that is just enough to take out the heat from the IOH
    Guess what, the temperature after these is just below 55C even under benchmarking (done during night time and I would expect that this will go to probably 60 degrees during daytime given the tropical climate in the Philippines).
    I was able to overclock my i920 at 3.6ghz without even adjusting anything on the voltages. Meaning they are at stock settings!  I managed to reach 4.0 ghz by simply adding 0.040v (around 1.29 Vcore only)
    Pros
    -   Easy to overclock board
    -   Supports both SLI and crossfire
    -   No issue on bigger after market cooling
    -   90 degrees placement of ICH10’s sata port
    -   Server grade VRM’s and Capacitors used
    -   Creative Xfi included
    Cons
    -   Only one SLI bridge included. It would have been better if a tri SLI connector was given by MSi.
    -   IOH temp an issue for my board.  Need to monitor and maybe try my modifications.
    -   Power/Reset/DLED Switches location will not be accessible if a 3rd video card is installed.
    Other thoughts
    -   It would have been better if the BIOS of the eclipse comes with nominal values on the Cell Menu. This is to serve as guide for the users if they are trying to alter the voltages.
    -   Maybe swap the ide and the sata 7 to 10 ports?  It is better looking if all 10 sata ports are on 90 degrees. It will also ensure that even if you use 2 or 3 video cards, it will not hit any of the sata 7-10 cables if you use them.

    I can see you got your use out of it.   I hope the new owner tortures it, too!

  • FI & MM Issue - Open GR for last Fis Year - Close / lock PO

    Hi
    I have the following FI / MM Issue.
    Open GR for last Fiscal Year cannot be reversed due to periods closed both FI/MM.
    This GR is related to Asset.   After receipt of GR, Asset has already been capitalized.
    The Inovice not entered thro' MIRO due to non-availability of PO ref.
    The Vendor Invoice booked (KR doc) with debit Asset and Credit to Vendor.
    Payment made to this invoice.
    MM wants to cancel the GR and it is not possible.  Then FI decided to clear thro' dummy invoice.
    FI accounted the dummy invoice for open GR to square-up the accounting entries.
    After finishing the above process, MM wants to close or lock the PO.
    Is it possible to short close or lock the previous year po now?  
    Please advise.
    Regards,
    GB

    Hi
    Can any one guide me for Open Asset GR reversal.
    I want to reverse the Asset GR thro' MR11 for testing. I have the following doubts.
    In MR11 - After Company Code - which date has to be entered? Posting date of the GR or current date!
    In Reference field I have to enter the DC/DN number
    Then I have entered the PO No. in Purchsasing Document field. Is it required to enter the PO Date???
    There is a Tick mark is already marked in "Delivery Surplus" - Is it required?
    There is a Tick mark is already marked in "GR/IR clearing account" - I think it Is required
    There is a Tick mark is already marked in "Delivery Cost Accounts" - Is it required?
    Last movement before key date - which date has to be entered?
    Is any other values to be entered?
    Our data is given below:
    PO Doc Date: 10.07.2008
    Delivery Date: 21.07.2008
    Posting Date: 31.08.2008
    Please give few guidelines about MR11 process. How it impact both in FI and MM module.
    As per my view it reverse the GR receipt entries as well as asset master entry.
    Need to test few PROD data for last year open GRs after competion of above testing.
    Please help me?
    Regards,
    GB

  • Question RE Editable PDF

    My problem is ...
    I am working with a Nightingale-Conant program from Garrett Gunderson called "New Rules To Get Rich," which has a PDF workbook to download.  However, after having copied the workbook to my computer as instructed (twice now) when I return to work on my plan, the document will not let me pick up where I have left off.
    I get a message when I reopen the workbook that says, "This document enabled extended features in Adobe Reader. The document has been changed since it was created and use of extended features is no longer available. Please contact the author for the original version of this document."
    What do I need to do to have the workbook respond to continuous editing as I do the exercises?

    Using Version X at the moment.
    In a message dated 2/2/2012 3:00:38 P.M. Central Standard Time, 
    [email protected] writes:
    Re:  Question RE Editable PDF
    created  by George Johnson
    (http://forums.adobe.com/people/George_Johnson)   in Adobe Reader - View the full  discussion
    (http://forums.adobe.com/message/4182082#4182082)

  • Smart albums based on date images were last edited

    Here's a quick question to throw out to the masses...
    Is it possible to create smart albums based on the date images were last edited within Aperture?
    If yes, then I can't seem to locate it! - Probably right in front of my nose!
    If no, then I think it would be a really handy feature so you can easily keep track of any changes made to individual images throughout your whole library by the date they were last tampered with.
    Any views, or pointers in the right direction?
    thanks
    Jason.

    Hi,
    this is exactly what I am looking for too! I would like to extend the question to: Is there any way to find the date when a version was created or modified?
    Thanks for your help,
    Uwe

  • FocusLost event for JTable during cell editing

    When a cell in a JTable is getting edited, how can I get notified of the focusLost event? I added the focus listener using JTable.addFocusListener, but the focusLost of the listener is not called when a cell inside the table is getting edited (it works fine otherwise). I am aware of the client property terminateEditOnFocusLost to solve this problem in 1.4 but I can't use it since I am still on 1.3.1_04.
    Suggestions welcome.

    http://forum.java.sun.com/thread.jsp?forum=57&thread=431440

  • 876948422.js is a remote file and cannot be edited. [close] looks like a link.

    I need a Dreamweaver CS4 Sharpshooter's help:
    I'm having an issue on the last two site files I have opened and it driving my crazy. I'm getting the yellow hilighted warning message. I open a file and where it states Source Code I get a numbers for example: 876948422.js then in the yellow highlighted it states: 876948422.js is a remote file and cannot be edited. [close] and this close looks like a clickable link.
    I seen this on the first file last Friday and I freaked out because I have heard of bandits stealing traffic and comissions from affiliates and I though someone hi-jacked my page and was stealing my stuff because I have gotten zero results from all my sites with this style email Opin page while Google tracking software has been showing atleast a little activity on these sites.
    So every web site that used that email Opin page I completely deleted. I even deleted them from my testing server on my local machine. I don't know if there is any software out there that can clean my machine of this kind of intruduer if that is what it is.
    Now I just opened another file which I took into Dreamweaver. I copied all the code and did a paste and this file has the js file as well. What is going on here..... help!!!
    It has the same file type with warning has someone completely taken over my machine through Dreamweaver or...
    I took a screen shot in paint and pasted it below... Please help....

    See my reply to your other post.  Please don't double post like this.
    http://forums.adobe.com/message/4002393#4002393

  • Restore an earlier document version -- Cannot see "my last edits" button for documents

    Dear all,
    My environment is Sharepoint 2013 Standard.  On a test document library I have versioning turned off. According to this article, I should be able to restore my modified document back to previous version:
    http://office.microsoft.com/en-us/office365-sharepoint-online-enterprise-help/manage-document-versions-in-skydrive-pro-HA103158256.aspx
    I just follow the instruction but I just cannot see the button "my last edits" or "UNDO CHANGES" anywhere. I am not sure what went wrong ...
    Thanks for any input.
    Mark

    Victoria,
    Thanks for your reply.
    I am testing in an internal environment so I did not deploy any 3rd party app. Just in case I installed the SP2013 sp1 released last month.
    On step 2, user B entered his OneDrive but there is no "Shared with Me" only "Followed documents".  (I think it is a feature not yet released. By search "Shared with me" in this forum I can see a number of people have same
    problem with me, e.g.
    http://social.technet.microsoft.com/Forums/sharepoint/en-US/2735e683-2cc2-4c33-beb3-2f27daa97698/sharepoint-sharing-shared-with-me-missing-in-skydrive-and-shared-files-are-inaccessible?forum=sharepointadmin)
    Anyway, it is not important here. User B browse to user A's OneDrive by type in URL like
    http://mysitehost/my/userA/Documents/ and able to see and edit the document shared at step 1. User B edit it.
    On step 3, user A entered his OneDrive but he cannot preview it (I think it is because I did not deploy OWA for my environment?). In the prompt up box, I cannot see "undo changes" as previous trials.
    I am thinking "undo changes" actually not ready? Just like "Shared with me".  Maybe the article have missed some configuration requirement. Thanks for follow up!
    Mark

Maybe you are looking for