Finding the changes since last save


DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 2 of 2

Thread: Finding the changes since last save

  1. #1
    M.S.RamaGopal Guest

    Finding the changes since last save


    We are developing a graphics builder in java.
    After drawing the required shapes with different poperties we are saving
    that file in graphic object format.
    When user presses close icon we are popping up a "save changes" dailog box
    with options 'yes' , 'no' and 'cancel'.
    The problem we are facing is to judge whether the file has changed from the
    prevous save in any respect.If there is no change after the last save ,then
    we need to avoid the popping up of dailogue box.
    This is a standard feature in any product.
    Please throw some light on how this can be accomplished in Java.
    Whether Java API privides any means to judge the changes or we need to keep
    track programatically?
    warm regards,
    Ramagopal.M.S





  2. #2
    Ashish patel Guest

    Re: Finding the changes since last save


    Mr M.S.
    One thing u can do is , try to see when your image changes
    means in mouse move or mouse click or in mouse drag.
    Suppose in mouse drag it can change , then
    maintain one flag which is initialy false. Tern that flag true
    in the mouse drag event.
    Now all u have to do while saving is,if flag in on then
    u have to pop up that window otherwise not.
    Tern that flag to false after saving

    -Ashish patel

    "M.S.RamaGopal" <ramgopal_ms@hotmail.com> wrote:
    >
    >We are developing a graphics builder in java.
    >After drawing the required shapes with different poperties we are saving
    >that file in graphic object format.
    >When user presses close icon we are popping up a "save changes" dailog box
    >with options 'yes' , 'no' and 'cancel'.
    >The problem we are facing is to judge whether the file has changed from

    the
    >prevous save in any respect.If there is no change after the last save ,then
    >we need to avoid the popping up of dailogue box.
    >This is a standard feature in any product.
    >Please throw some light on how this can be accomplished in Java.
    >Whether Java API privides any means to judge the changes or we need to keep
    >track programatically?
    >warm regards,
    >Ramagopal.M.S
    >
    >
    >
    >



Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center
 
 
FAQ
Latest Articles
Java
.NET
XML
Database
Enterprise
Questions? Contact us.
C++
Web Development
Wireless
Latest Tips
Open Source


   Development Centers

   -- Android Development Center
   -- Cloud Development Project Center
   -- HTML5 Development Center
   -- Windows Mobile Development Center