// title
By default, Mac application title is name of main Java class.

Puts an About menu on menu bar
	java -cp myapp.jar:. -Dcom.apple.mrj.application.apple.menu.about.name=MyApp MyApp

	So far, this hasn't worked using setProperty

May need special coding.

// use Mac top menu bar for menus
java -Dapple.laf.useScreenMenuBar="true" -jar SoundApp

OK, I'm not clear on this: according to

http://java.sun.com/developer/technicalArticles/JavaLP/JavaToMac/
http://java.sun.com/developer/technicalArticles/JavaLP/JavaToMac2/

Makes JFrame menu bar to appear as Mac top menu bar
	java -cp myapp.jar:. -Dcom.apple.macos.useScreenMenuBar=true MyApp
	So far, I'm unable

I think setting the top menu bar system property is harmless...
but which property is it?  I tried the "apple.laf" one and it worked.
but the "com.apple.macos" one looks clearer...
It should be possible to do this in the code before the first window opens.

OK, according to Apple's "Java 1.4.1 Release notes"
	apple.laf is preferred to com.apple.macos since Java 1.4.1


How to make menubar go away entirely?
=====================================
There is using Full-screen mode.  But that is a whole different thing,
meant for high-performance graphics directly on the video card, and
requiring lots of specialized coding.

Does MenuBar have a setVisible()?  No.

Oh, but JMenuBar does!
But no avail.  Make JMenuBar for DisplayPanel, use setJMenuBar, 
then set its visibility to false.  It's still there.

Creating input files
=====================================
Two problems. 
The native encoding maybe something other than UTF-8,
and the use of carriage returns for line endings rather than unixy newlines.

These free programs look promising, but I haven't tried them all.

Jext
	http://www.jext.org/
	Doesn't seem to do Unicode...how can that be?

Smile regular edition
	http://www.satimage.fr/software/
	works-- but is really meant to be an AppleScript editor
Plain Text Editor
	http://alphaomega.software.free.fr/plaintexteditor/Plain%20Text%20Editor.html
QuoEdit
	http://www.occn.zaq.ne.jp/ski/lib/qedt.htm
	Doesn't install on OS 10.4

Quadrivo General Edit lite
	http://www.quadrivio.com/

Alan Wood has a list of Unicode editors for Mac OS X
http://www.alanwood.net/unicode/utilities_editors_macosx.html
Lists also

Simredo4
	Java, Unicode-only
	Works, but quite primitive (no MacOS support)

jEdit
	Java.  Very big and fancy.  This is my favourite.

SUE (Simple Unicode Editor)
	http://free.abracode.com/sue/

Determining fonts that can display strings
=====================================
I use canDisplayUpTo() to determine if a font is capable of displaying
a string.  This works correctly in Linux and Windows, but on the Mac,
the function never fails...and indeed, every font I tried would display
Chinese, even though I think Chinese glyphs are not part of the font.

How?  The OS appears somehow to be stealing glyphs from another font.

Web search only finds a couple of people who say the function is 
broken on the Mac.

on Apple's Java-dev list,
"Japanese glyphs -- canDisplayUpTo and getStringBounds"
Jeff Hultquist
Thu, 7 Oct 2004 08:14:35 -0700
reports the opposite problem using Java 1.4.2: the font's canDisplayUpTo()
returns 0, although he can display the glyph in that font.
http://lists.apple.com/archives/Java-dev/2004/Oct/msg00240.html

Well, at least it's self-consistent, and that sort of makes the question
go away, but leads to some confusing effects:  you pick two different 
fonts, that give very different Latin glyphs, but whose Chinese glyphs
are identical.  Also, the Chinese glyphs may not seem to go at all well
with the roman glypys "of the same font".

I would like to find out whether a font *really* contains a certain 
glyph.  How do I do that on the Mac?

(Posted question on Apple Java-dev list, 05/10/07)
http://lists.apple.com/archives/java-dev/2007/May/msg00103.html

Got an answer.  This is more a Java thing than a Mac thing, and is 
controlled by java.properties file.  It is the distinction between 
"physical" fonts and "composite" ("logical") fonts.

But... JDK Font doc seems to indicate that the only logical fonts are
Dialog, DialogInput, Monospaced, Serif, or SansSerif.
See Font.hasUniformLineMetrics


