Skip to main content


1 reply [Last post]
Joined: 2006-04-05


im writing a project and i cant get it to work!

im doing a text editor and i want to check if any key is pressed in the jtextarea, if so when i try to close it should ask if i want to save or not, otherwise just close.

i want to use a boolean after checking

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
Joined: 2006-01-07

For advice on your programs you'd best go to the Java forums at

This forum is really for discussions of new Java features we'd like to see and so on.