-
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
-
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
Forum Rules
|
Top DevX Stories
Easy Web Services with SQL Server 2005 HTTP Endpoints
JavaOne 2005: Java Platform Roadmap Focuses on Ease of Development, Sun Focuses on the "Free" in F.O.S.S.
Wed Yourself to UML with the Power of Associations
Microsoft to Add AJAX Capabilities to ASP.NET
IBM's Cloudscape Versus MySQL
|
Bookmarks