itsanjan / arduino

Automatically exported from code.google.com/p/arduino
Other
0 stars 0 forks source link

Proper document icon in window title bar on Mac OS X. #619

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
On Mac OS X, there should be a proper document icon in the title bar of the 
window - i.e. one that you can right click on to see the path to the document.

On the developers list, Wlm Lewis pointed to:

The Java release notes for OSX Leopard mention this:

Radar #5045905
There is no way to create a Java window with a document "proxy icon".

Description:
There is a new client property ("Window.documentFile") that can be added
to the JRootPane of each heavyweight window that takes a File object as
a key. When this client property is set, the window will then show a
document "proxy icon" next to it's title. Please see tech note TN2196
for more information.

TN2196:

http://developer.apple.com/library/mac/technotes/tn2007/tn2196.html#WINDOW_DOCUM
ENTFILE

Original issue reported on code.google.com by dmel...@gmail.com on 1 Sep 2011 at 2:42

GoogleCodeExporter commented 9 years ago
Some more information from Jan Borchers:

OK - here's what we found out about that "command-click titlebar to see the 
path" feature for Java Swing apps on Mac OS X:

1 - It's called a "proxy icon", and the API for this property is documented in 
this Apple TechNote: 
http://developer.apple.com/library/mac/technotes/tn2007/tn2196.html#WINDOW_DOCUM
ENTFILE

2 - At some point, Swing had a bug 
(http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6491619) concerning this. 
There is a workaround with adding transparent JPanels to the root Pane, maybe 
one could create a custom Subclass of JFrame that does this automatically. I 
don't know if this only works with Swing's default look and feel though.

Maybe those pointers are enough to try to enable this feature in Arduino and 
see if it "just works" (haha)?

Original comment by dmel...@gmail.com on 6 Sep 2011 at 2:29

GoogleCodeExporter commented 9 years ago

Original comment by federico...@gmail.com on 3 Jul 2015 at 8:58