Results 1 to 1 of 1
Thread: Mark java.awt.Frame as modified
- 11-16-2010, 06:34 PM #1Member
- Join Date
- Nov 2010
- Rep Power
Mark java.awt.Frame as modified
I am working on an application which edits trees. It uses awt. I am wondering wether there is a way to mark "modified" frames when users modify a tree.
On Windows, it is a common convention to add a "*" to a document's title bar to mark the document as modified and not yet saved. On the Mac, there are custom window properties to add a standardized title bar mark instead of the "*".
Unfortunately, I found a solution which works only for JFrame on mac os x. Here it is:
JFrame frame = new JFrame( "Modified" );
JRootPane root = frame.getRootPane( );
root.putClientProperty( "Window.documentModified", Boolean.TRUE );
Founded at this location:
Mac Java tip: How to control window decorations | Nadeau Software
All window decorations can be controlled from Java, either with AWT or Swing methods or through Mac-specific client properties and runtime options. (See Apple's New Control Styles available with J2SE 5.0 on Mac OS X 10.5.)
But I didn't find anything !!
I would like to find a solution for Mac and Microsoft Windows while using awt. Can someone help me please?
- By Annorax in forum New To JavaReplies: 1Last Post: 04-13-2010, 11:58 PM
- By theseven in forum New To JavaReplies: 1Last Post: 02-12-2010, 02:50 PM
- By markbourne in forum Reviews / AdvertisingReplies: 1Last Post: 10-23-2008, 03:47 AM
- By Java Tip in forum java.ioReplies: 0Last Post: 04-04-2008, 03:45 PM
- By sandhyau in forum AWT / SwingReplies: 5Last Post: 02-07-2008, 12:52 PM