Reputation: 613
I have seen a few OSX apps that have a Special Characters menu item in their Edit menu. For example Safari.
Clicking it brings up the so-called Character Viewer.
How can this be achieved by a Java Swing app?
Upvotes: 2
Views: 265
Reputation: 205875
FontShower
is an applet that displays a list of available fonts, including the installed logical fonts, and a selection of available glyphs, sizes and colors.
Upvotes: 1
Reputation: 52478
On Mac OS X 10.8 you'll find the Character Viewer app here:
/System/Library/Input Methods/CharacterPalette.app
I think the easiest way to run this from a Java app is by using executing the process:
new ProcessBuilder("/System/Library/Input Methods/CharacterPalette.app/Contents/MacOS/CharacterPalette").start();
Upvotes: 3