Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Is there automatic way to determine if there is unsaved data on form?

 
Anton Kuzmin
Greenhorn
Posts: 19
Eclipse IDE Java Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The "form" contains different types of JComponent-s that respond to different user events. I started writing my own custom code but was wondering if there is automatic way to determine if there is unsaved data on form? For starters, attached DocumentListener to support JTextField-s.
 
Paul Clapham
Sheriff
Pie
Posts: 20955
31
Eclipse IDE Firefox Browser MySQL Database
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Anton Kuzmin wrote:I started writing my own custom code but was wondering if there is automatic way to determine if there is unsaved data on form?


No, there isn't.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic