Wednesday, July 25, 2007, 4:38:36 PM, Hussein Shafie wrote: > Daniel Dekany wrote: >> On Windows keyboards there is a key next to the right Ctrl, which, >> when pressed, should act like mouse right-click at the position of the >> caret. This is especially handy for clicking on things underlined by >> the on-the-fly spell-checker. It would be good if that key works in >> XXE... I don't know if it's possible with pure Java. > > Yes, this is possible. Java[tm] 1.5 supports the two following ``Windows > keys'': CONTEXT_MENU (the one you are interested in) and WINDOWS. The > problem is that XXE needs to run using a Java 1.4 runtime, where such > definitions are not available. But this will change with XXE v4 (a major > rewrite).
May I note, it's certainly not a big deal to do some runtime lookup if CONTEXT_MENU is available, and if so then use it. >> (Did you considered using SWT in the future? Fells much more >> "native".) > > Frankly no. (Among others it uses the native font anti-aliasing of the host platform. Given that it's a text editor, that's maybe something. Well, anyway, SWT looks (more) "native", and that's maybe a big plus for a desktop application. Most Swing apps just look weird (unprofessional, lame) compared to the native apps, and XXE is not an exception. I don't know, maybe it's an important negative impressions for someone who has never used Java apps. OTOH if some customers want to integrate your stuff into their Java applications, Swing is certainly better. Unless, of course, you want integration with Eclipse. And yes, SWT has native (C or C++) part. I'm not sure how difficult it would be to support both SWT and Swing front-end...) -- Best regards, Daniel Dekany

