BeanInfo Customizer

I’m trying to get a mnemonic key to bring up a customizer for a component that I’ve made. I’m using the CustomizerDescriptor class in my beans component info like:

super(MyComponent.class, new CustomizerDescriptor(
        MyComponent.class,
        "My Component", "", CustomizerDescriptor.DEFAULT_MNEMONIC, "My Component Description", "U"
));

The problem I’m having is that my component will open the customizer whenever you press “U” (which is exactly how it’s programmed I know). What is the string syntax to make it operate on Ctrl+U?

Thanks in advance.

You need to use a string literal escape, as ctrl-U is ascii code 21. So, “\u0015”, or “\25”.

Thanks!