How to stop the auto fireEditingStopped event?

Hi,
I am using AbstractTableModel and AbstractCellEditior.
I have a cell with 1 JTextField and 2 buttons (which increase or decrease the value in the text field by 1).
I want to show a yes-no confirmation dialog to the user if he/she manually edit the text field and the value goes above 10.
However, when I found that AbstractCellEditior.stopEditing() is called automatically everytime a user hits "enter" or lose focus.
It becomes problematic because fireEditingStopped() will call CellEditorListener.editingStopped(), which calls AbstractTableModel.setValueAt(), where I send a notification to the server.
I don't want to send a notification to the server before the user confirms his/her change.
Anyway to get around it?
Thanks in advance.

You just need to use a correct implementation of the TableCellEditor. Something like this:
http://forum.java.sun.com/thread.jspa?forumID=57&threadID=575309

Similar Messages

  • How to stop the auto updater in N900 application m...

    Hey guys,
    Anyone know how to stop the auto updater in N900 application manager ?
    Coz when i connect via wifi or 3G, it always try to search for updates...Coz of that i cant search the web properly until its over.
    Specially when i connect via GPRS, i have to pay more for this extra mega bites use from app manager...
    So got any ideas for this prob...?
    (I usually use faster app manager to install apps.)
    Click the star if this helps you (",)
    If this is your answer, please do not forget to click "Accept as solution" (",)

    virajx3006 wrote:
    Hey guys,
    Anyone know how to stop the auto updater in N900 application manager ?
    Coz when i connect via wifi or 3G, it always try to search for updates...Coz of that i cant search the web properly until its over.
    Specially when i connect via GPRS, i have to pay more for this extra mega bites use from app manager...
    So got any ideas for this prob...?
    (I usually use faster app manager to install apps.)
    dude check your inbox
    Reality is wrong....dreams are for real... 2pac .
    don't forget to hit that green kudos

  • How to stop the auto change of the desktop background picture ?

    How to stop the auto change of the desktop background picture ?

    Well . . thanks, but I already have done that and I still have the problem. The background changes to the standard picture galaxy not to one of the options. Sorry my question wasn't clear enough.
    Thanks. 

  • How to stop the auto refresh in dashboard

    i have a BIP Report, i have unchecked the "Auton Run" option in the report properties of BIP reports and uploaded the report to My Dashboard,
    when i login into the answers or when i refresh the dashboard page, my BIP Report is executing automatically even though it is uncheck in its report properties and generating the "page not found error"... can any one help me, how can i control the BIP report not to execute it until when we click on click export button....

    virajx3006 wrote:
    Hey guys,
    Anyone know how to stop the auto updater in N900 application manager ?
    Coz when i connect via wifi or 3G, it always try to search for updates...Coz of that i cant search the web properly until its over.
    Specially when i connect via GPRS, i have to pay more for this extra mega bites use from app manager...
    So got any ideas for this prob...?
    (I usually use faster app manager to install apps.)
    dude check your inbox
    Reality is wrong....dreams are for real... 2pac .
    don't forget to hit that green kudos

  • How to stop the auto-start of log reader agent (replication) right after my database is restored?

    I have the scenario where the SQL server is restored (after migration).
    This database has transactional replication set-up on one of the databases. When I do a manual delete and restore of the database, I see that the replication starts right after the publisher and subscriber are restored.
    Replication agents should not start and run before the integrity checks are completed. How to stop the replication from auto starting right after the migration?
    Thanks in advance - Jebah

    Thanks Pradyothana, I have disabled the logreader, distribution agents through sp_update_job in Tsql script. I have also verified that there are no pending transactions to be replicated to the subscriber, I see that the job is still being executed. Is there
    any other way to disable the jobs?
    Steps I followed
    Started with a Working publication and subscription
    Disabled the jobs (log reader and distribution agents)
    Backed up publisher, subscriber, distribution and msdb
    Deleted the publication, subscription, publisher and subscriber
    Restored the publisher, subscriber, distribution and msdb
    Enabled the jobs and executed sp_replrestart
    Observations/Issues
    Replication does not work
    Replication monitor does not show any error
    Jobs are shows as enabled but not started in job monitor
    Not able to start/stop the log reader and synchronization manually.
    I am not sure if I have missed something while restoring the db.
    Thanks in advance

  • How to stop the 'Auto adjustment in progress' message during start-up

    Hi,
    I am using an HP 2311x  monitor and when I start up the message 'Auto Adjustment in Progress' flashes twice before my Desktop appears.  Can I stop this message from appearing?
    Thanks and regards,
    2harts4ever
    " ... Nuff Said. Keep Smiling Because I'm Smiling Too!"
    This question was solved.
    View Solution.

    Hi  Mister_Do,
    I just solved my problem by running the HP Support Assistant and then its Troubleshooting Program for Monitors.  After it got done testing my monitor and its settings everything seems to be back to normal ....i.e, no more  'Auto Adjustment in Progress' messages. 
    Thanks and regards,
    2harts4ever
    " ... Nuff Said. Keep Smiling Because I'm Smiling Too!"

  • How to stop annoying auto scrolling in window

    I'm running 10.8.5.  Since upgrading to 10.8.5 from 10.6.x, my system has been doing two VERY annoying things.
    1. Within a window, if I have a file selected (highlighted), say at the bottom of the window.  Then I scroll all the way to the top (not selecting any other file), and the selected file is off screen (can't see it).  I would then copy a file from another window to the first window (the file being copied starts with "A" so it should show up where I scrolled to at the top in the first window), once it's finished copying over, the window will automatically scroll down to the file I had selected earlier.  Without fail.  This actually happens with any other activity being done on my system.  Window ALWAYS scroll to the highlighted file where ever you are in the window.  This has never happened with 10.6.x or earlier OS X.
    2. This one seems to happen randomly.  Whenever I select a file to change it's name (doing a single click on the name bar), instead of the file I hit being editable, 10.8.5 would select a random file down the list instead.  Making THAT file editable.
    Anyone else experience these?  Is there a fix, or an option somewhere to turn these ridiculous features off?
    I really don't know what Apple is doing these days.  But it certainly is no longer the user friendly and reliable system I've used for over 20 years.  It's all about glitz and glam, no real functionality for old school power users.  Instead of being a unique system like it used to be, it's now just a glorified version of PC.  Just costs a lot more.

    virajx3006 wrote:
    Hey guys,
    Anyone know how to stop the auto updater in N900 application manager ?
    Coz when i connect via wifi or 3G, it always try to search for updates...Coz of that i cant search the web properly until its over.
    Specially when i connect via GPRS, i have to pay more for this extra mega bites use from app manager...
    So got any ideas for this prob...?
    (I usually use faster app manager to install apps.)
    dude check your inbox
    Reality is wrong....dreams are for real... 2pac .
    don't forget to hit that green kudos

  • How to stop the spinning ball/pizza that is stalling repairs to project on imovie 09? on macosx10.5.8 using iomega and superspeed ext h.d. as storage for the events and projects archive of a wedding video that has had audio sync problems on all share form

    How to stop the spinning ball/pizza that is stalling repairs to project on imovie 09? on macosx10.5.8 using iomega and superspeed ext h.d. as storage for the events and projects archive of a wedding video that has had audio sync problems on all share formats (iDVD, mp4, and last of all iTunes). The project label now carries signal with yellow triangled exclamation “i tunes out of date”.
    To solve the sync problem I’m following advice and detaching sound from all of the 100 or so short clips.  This operation has been stalled by the spinning ball. Shut down restart has not helped.
    The Project is mounted from Iomega and superspeed ext hd connected to imovie09 on macosx 10.5.8.
    What to do to resume repairs to the audio sync problem and so successfully share for youtube upload?

    How to stop the spinning ball/pizza that is stalling repairs to project on imovie 09? on macosx10.5.8 using iomega and superspeed ext h.d. as storage for the events and projects archive of a wedding video that has had audio sync problems on all share formats (iDVD, mp4, and last of all iTunes). The project label now carries signal with yellow triangled exclamation “i tunes out of date”.
    To solve the sync problem I’m following advice and detaching sound from all of the 100 or so short clips.  This operation has been stalled by the spinning ball. Shut down restart has not helped.
    The Project is mounted from Iomega and superspeed ext hd connected to imovie09 on macosx 10.5.8.
    What to do to resume repairs to the audio sync problem and so successfully share for youtube upload?

  • How do I stop the auto-renewal option?

    This new format (Windows really sucks. Since I am not allowed to go back to the old format, I will change providers at renewal.  How to I stop the auto-renewal so I do not have to suffer even longer?

    You can cancel the recurring payment following these steps:
    1. Sign in to your account and, on the left of the page, click your existing subscriptions
    2. Click Settings next to the subscription you want to cancel. (If you just have one subscriptions, you won't see a Settings link; just click your subscription.)
    3. Click Cancel subscription.
    4. Confirm that you'd like to cancel it. Information on the subscription you have
    cancelled
    Important: If you need to cancel a subscription, make sure to do it at least three days before the renewal date; otherwise, you might be charged for the next billing cycle.
    If one of my replies has adequately addressed your issue, please click on the “Accept as Solution” button. If you found a post useful then please "Give Kudos" at the bottom of my post, so that this information can benefit others.

  • How do I stop the auto generation of previews to imported files?

    In a recent post it was suggested that I do not let Aperture automatically generate the previews to all imported files. I think that is a great idea, but how do I stop the auto generation of such files?
    Under Preferences/Previews I have unchecked the New projects automatically generate previews, but after I do the import the processing wheel continues to spin for quite some time (depending on how many files I imported).
    Thanks in advance.
    David

    Take a look here:
    Pretty much the same in Ap2 and Ap3
    [http://photo.rwboyer.com/2009/01/03/aperture-2-quick-tip-managing-previews>
    RB

  • HT5295 How can I stop the auto play feature automatically playing/streaming the next podcast?

    How can I stop the auto play feature automatically playing/streaming the next podcast?

    Hi there.
    I listened to podcast there were two things I found that helped me out. Both we're in the podcast app itself.
    Firstly change the default sorting order. When looking at the list off episodes a available on your ios device tap on the description part at the top, this will bring up the settings for that podcast (subscribe mark as played etc) scroll to the Bottom and select oldest first. This will mean that if you are listening to the latest download it will stop at the end as there will be no more to play.
    Secondly, and useful if listening to older podcasts in the list, you can use the timer to stop once the current episode has ended. To do this when you are in the podcast playback screen slide the "album artwork" up, revealing the playback options and nifty tape playing animation this is where you adjust playback speed and set a timer. The timer has a number of options to set playback to stop after set amount of time. However one of these options is to stop once the current episode you are listening to ends. This can also be current chapter if the podcast you are listening to supports chapters.
    Hope this helps, if not clear let me know

  • How can I stop the auto-saving of Pages version 4.1?

    How can I stop the auto-saving of Pages version 4.1?

    Why not just open your eyes !
    Under 10.6.8, we had two menu items :
    Save and Save As…
    Now we have a single Save…
    Since the first delivery of the macintosh,
    a menu item whose name ends with ellipsis is one which always open a dialog.
    Under 10.6.8 and older the Save button was used to save and already saved document without opening a dialog.
    If the document was never saved, it behaved as the Save As… one.
    With Lion the Save feature : save an already saved once document is no longer required as the system autosaved everything.
    There was no reason to keep this aspect of the Save item.
    Remaining tasks are those which were dedicated to the Save As… button.
    The engineers choose to drop one op the now duplicating items.
    The synthesis is the Save… item which clearly state what it is supposed to achieve.
    Triggering it, we may :
    change the name used to save
    change the destination folder
    export as .doc
    export as Pages '08
    Of course there is always the black triangle allowing us to use the stripped dialog or the full one.
    Yvan KOENIG (VALLAURIS, France) mardi 26 juillet 2011 12:15:06
    iMac 21”5, i7, 2.8 GHz, 4 Gbytes, 1 Tbytes, mac OS X 10.6.8 and 10.7.0
    Please : Search for questions similar to your own before submitting them to the community
    To be the AW6 successor, iWork MUST integrate a TRUE DB, not a list organizer !

  • How to stop multiple auto-switching to address bar every time I open a new tab and try to type something anywhere outside of address bar?

    How to stop multiple auto-switching to address bar every time I open a new tab and try to type something anywhere outside of address bar? Like something just wants me to use that embedded search when u type something not-web-address in address bar and hit enter. And the most ridiculous thing is that it happens repeatedly on like every second, like I just move down from address bar and start typing again, but then again it switches me to address bar, and 3, 4 times like that. And the result is also that I can't see the address of that page.
    I think its has something to do with my AVG antivirus, because this started the same time some AVG Nation started to appear in every new tab i open (and thats also irritating me, I read about it here on support.mozilla.org and it seems that the only solution is to completely reinstall Firefox, but I dont want to lose all my settings) but when i type something in address bar and hit enter it opens the search results in Google.
    Please try to help me, I like Firefox but I must switch to Chrome until I fix this problem.
    Thanks in advance

    First, please update to Firefox 32. 22 is no longer support nor is it secure. Then let us know if you still have this problem. [[Update Firefox to the latest version]]

  • How to stop the waterflow?

    Hi,
    I need to make the water coming from the shower, when shower is clicked.
    And the water should stop after 5 seconds.
    The code is below.
    The water is flowing nicely. But I do not manage to stop it.
    I added a timer, which starts when the shower is clicked. And should stop the waterflow after 5 seconds have passed.
    With the lines
    if (stop = true)
         break;
         trace("break");
    it looks like the for loop is breaking right from the start, from the first second. But not completely, somehow 1 or 2 drops are flowing.
    Without these lines nothing is happening when the time is over (5 seconds from clicking the shower). Water is just flowing.
    Can someone help? How to stop the water flowing after 5 seconds and clean of the array and stage from the waterdrops?
    Many thanks in advance!
    import flash.display.MovieClip;
    import flash.events.Event;
    import flash.utils.Timer;
    import flash.events.TimerEvent;
    var WatertropArray: Array = new Array();
    var WaterArea01: MovieClip = new WaterArea();
    var WaterBorder01: MovieClip = new WaterBorder();
    var timer: Timer = new Timer(5000, 1);
    var stopp: Boolean;
    var i: uint;
    Shower.addEventListener(MouseEvent.CLICK, waterFlowStart);
    function waterFlowStart(event: MouseEvent): void
                    addChild(WaterArea01);
                    WaterArea01.x = WaterArea00.x;
                    WaterArea01.y = WaterArea00.y;
                    WaterArea01.alpha = 0;
                    addChild(WaterBorder01);
                    WaterBorder01.x = WaterBorder00.x;
                    WaterBorder01.y = WaterBorder00.y;
                    WaterBorder01.alpha = 0;
                    stopp = false;
                    timer.addEventListener(TimerEvent.TIMER, waterFlowEnd);
                    timer.start();
                    addWaterdrops();
                    Shower.removeEventListener(MouseEvent.CLICK, waterFlowStart);
    function addWaterdrops(): void
                    for(var i: uint = 0; i < 100; i++)
                                   var waterDrop: MovieClip = new Waterdrop();
                                   addChild(waterDrop);
                                   waterDrop.x = Math.round(Math.random() * stage.stageWidth / 1.5);
                                   waterDrop.y = Math.round(Math.random() * stage.stageHeight / 3);
                                   waterDrop.alpha = 0;
                                   waterDrop.rotation = -12;
                                   WatertropArray.push(waterDrop);
                                   trace("waterdrops added");
                                   moveWaterdrops();
    function moveWaterdrops(): void
                    waterDrop00.addEventListener(Event.ENTER_FRAME, waterFlow);
    function waterFlow(event: Event): void
                    for(var i: uint = 0; i < WatertropArray.length; i++)
                                   WatertropArray[i].y += 8;
                                   WatertropArray[i].x += 5;
                                   //trace(i);
                                   if(WatertropArray[i].hitTestObject(WaterArea01))
                                                   WatertropArray[i].alpha = Math.random();
                                                   WatertropArray[i].scaleX = Math.random();
                                                   WatertropArray[i].scaleY = WatertropArray[i].scaleX;
                                   if(WatertropArray[i].hitTestObject(WaterBorder01) || WatertropArray[i].x > stage.stageWidth || WatertropArray[i].y > stage.stageHeight / 2)
                                                   WatertropArray[i].x = Math.round(Math.random() * stage.stageWidth / 1.5);
                                                   WatertropArray[i].y = Math.round(Math.random() * stage.stageHeight / 3);
                                                   WatertropArray[i].alpha = 0;
                                   if(stopp = true)
                                                   break;
                                                   trace("break");
    function waterFlowEnd(event: TimerEvent): void
                    trace("TIME OVER");
                    stopp = true;
                    stoppTrue();
    function stoppTrue(): void
                    for(var i: uint = WatertropArray.length; i > WatertropArray.length; i--)
                                   remove(i);
    function remove(idx: int)
                    removeChild(WatertropArray[idx]);
                    WatertropArray.splice(idx, 1);
                    trace("REMOVED");
                    removeChild(waterDrop00);
                    trace(i);

    thanks again, kglad.
    changed the for-loop and it is reaching now the last functions as well.
    but there is still a but  ... an error message.
    function waterFlowEnd(event: TimerEvent): void
    trace("TIME OVER");
    stopp = true;
    stoppTrue();                                                       // line 106
    function stoppTrue(): void
    for(var i: uint = WatertropArray.length-1; i >= 0; i--)
    trace("stoppTrue");
    remove(i);                                                         // line 115                                                    
    function remove(idx: int)
    removeChild(WatertropArray[idx]);                   // line 123
    WatertropArray.splice(idx, 1);
    trace("REMOVED");
    //removeChild(waterDrop00);
    trace(i);
    and the output panel gives the following (tested with 5 water drops, 5 items in array):
    TIME OVER
    stoppTrue
    REMOVED
    0
    stoppTrue
    REMOVED
    0
    stoppTrue
    REMOVED
    0
    stoppTrue
    REMOVED
    0
    stoppTrue
    REMOVED
    0
    stoppTrue
    TypeError: Error #2007: Parameter child must be non-null.
    at flash.display::DisplayObjectContainer/removeChild()
    at TitavannisinglisekeelneAS3_fla::MainTimeline/remove()[TitavannisinglisekeelneAS3_fla.Main Timeline::frame1:123]
    at TitavannisinglisekeelneAS3_fla::MainTimeline/stoppTrue()[TitavannisinglisekeelneAS3_fla.M ainTimeline::frame1:115]
    at TitavannisinglisekeelneAS3_fla::MainTimeline/waterFlowEnd()[TitavannisinglisekeelneAS3_fl a.MainTimeline::frame1:106]
    at flash.utils::Timer/_timerDispatch()
    at flash.utils::Timer/tick()
    What is that error message trying to tell me?   

  • How to Stop the method Action When an Exception Occur in other Method

    Hi All ,
    public void action( Event clientEvent) {
    startAction();
    JOptionPane.showMessageDialog(null, getDocumnetId());
    how to Stop the method action ( "action" ) if an exception occur in the method ("startAction")
    ( if the exception occur we doesn't need to show the JOption Message )

    Hi,
    try FacesContext.getCurrentInstance().renderResponse();
    Frank

Maybe you are looking for

  • System really messed up with all folders locked after installing Mavericks

    Wow, I love Mac, but this last OS install of Mavericks has sent me for a loop, not only did it erase all of my files except for applications, it turned my computer into a fresh off the shelf Mac and I lost most everything in settings in all applicati

  • Low brightness on iMac Windows 8 Bootcamp?

    I installed windows 8.1 one week ago on my iMac. 2011 model (i5 2.7ghz, 4gb ram, 21" screen). The brightness was lower as soon as the windows desktop came up. Everything says it's at full brightness yet it's extremely dull compared to when the comput

  • Limewire + Itunes??

    I recently had to nuke my computer and re-install everything. Though I have checked off the box in Limewire that says it will automatically download the songs into Itunes, none are showing up unless I find them and double click on them. It used to ha

  • Join two tables using union

    Hi Gurus, I have three tables. I want to join all tables using union in SQL statement. The query is returning all the records from both tables but i only require unique rows based on a specific column value. Here is my table structure - TableA - LIC_

  • Archiving: adding more selection criterias for MM_EKKO

    Is there a possibility for adding new selection criterias for object MM_EKKO? Any exits for Release 4.6c?