Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Character Palette



Hi Elliotte,

I checked the processes running after opening up the Character Palette from within the Finder.  The application that runs can be found here:

/System/Library/Components/CharacterPalette.component/Contents/SharedSupport/CharPaletteServer.app/Contents/MacOS/CharPaletteServer

Typing that in at the terminal opens the Character Palette and I've tried the following and it works from Java:

public class CharacterPalette {

    public static void main(String[] args) {
        try {
            Runtime.getRuntime().exec("/System/Library/Components/CharacterPalette.component/Contents/SharedSupport/CharPaletteServer.app/Contents/MacOS/CharPaletteServer");
        } catch (IOException e) {
            // TODO Auto-generated catch block
            e.printStackTrace();
        }
    }
}

Is this what you want?

Please note that I am using Mac OS X 10.4, Tiger.  I don't know if this is compatible with other versions of OS X and of course there is no guarantee that the application may not move to somewhere else in the future.  Also I don't know if this a valid thing to do or not (maybe someone else does) but maybe this suffices for your needs.

Best Regards,

Ian Cheyne


On 11 Oct 2005, at 21:40, Elliotte Harold wrote:

Anyone happen to know a simple way to pop up the character palette from a Java Swing application? e.g. I'm looking for the palette found in many applications including TextEdit and QuickTime Player as Edit/Special Characters. Doesn't need to be cross-platform. Is there a standard method for this?

-- 
Elliotte Rusty Harold  email@hidden
XML in a Nutshell 3rd Edition Just Published!
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Java-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden


 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Java-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/java-dev/email@hidden

This email sent to email@hidden

References: 
 >Character Palette (From: Elliotte Harold <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.