Gerald Frischl

Greenhorn
+ Follow
since Jul 23, 2007
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Gerald Frischl

Hi Michael,

you've answered my next question:
How can I prevent data loss when closing the application?

Thanks a lot!
Gerald
13 years ago
Thank you again!

I'll think it over.

But isn't there a standard solution to this (common) task?

Best regards
Gerald
13 years ago
Thank you, Ulf!

A possible solution is: after each keystroke I compare the new
content of JTextField with the stored old string. If there is a difference
I set the "changed"-flag.

Does this make sense or is there a better way?

Best regards
Gerald
13 years ago
Hi,

I am working on a Swing application for data maintenance (Java 6).
There is a JFrame with several JTextFields.
If the user is editing a record, there is UNSAVED data until she/he presses the Save-Button.

The application should always be aware if there is unsaved data. How can this be done?

Best regards
Gerald
13 years ago