Results 1 to 1 of 1
Thread: Mark java.awt.Frame as modified
- 11-16-2010, 05:34 PM #1
Member
- Join Date
- Nov 2010
- Posts
- 1
- Rep Power
- 0
Mark java.awt.Frame as modified
Hello everybody,
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
They say:
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?
Best regards,
Patrick
Similar Threads
-
Compiling all modified Java files in a folder on Unix
By Annorax in forum New To JavaReplies: 1Last Post: 04-13-2010, 10:58 PM -
How to use Switch case A, B C, D, E,F mark change to 5,4,3,2,1,0 mark java
By theseven in forum New To JavaReplies: 1Last Post: 02-12-2010, 01:50 PM -
Java Tactics - Mark Bourne
By markbourne in forum Reviews / AdvertisingReplies: 1Last Post: 10-23-2008, 02:47 AM -
How to get the last modified date of a file from a java program
By Java Tip in forum java.ioReplies: 0Last Post: 04-04-2008, 02:45 PM -
how to draw an arrow mark using java swing
By sandhyau in forum AWT / SwingReplies: 5Last Post: 02-07-2008, 11:52 AM


LinkBack URL
About LinkBacks
Reply With Quote

Bookmarks