Re: How to enter characters beyond keyboard into JTextField?



Knute Johnson wrote:
Michael Dunn wrote:

"Knute Johnson" <nospam@xxxxxxxxxxxxxxxxx> wrote in message news:XkJsf.6711$TW4.3020@xxxxxxxxxxxxxxx

How do I enter characters from the keyboard that aren't on the keyboard? For example if I want to enter the 1/2 character \u00bd. I thought on a Winblows machine that you could do that by holding down the ALT key and then typing a sequence of numbers. It doesn't and I hadn't tried it in a long time.



ALT 0189

works OK for me in a JTextField (win xp)


That's how I thought it was supposed to work but it's not for some reason. I'll have to play with it some more.


It only works with the numeric keypad not the regular number keys!

--

Knute Johnson
email s/nospam/knute/
.



Relevant Pages

  • Re: problem printing unicode in java
    ... Knute Johnson wrote: ... generate them dynamically from their hex values. ... I print this it prints exactly "\u7557" instead of the character that ... what font are you using? ...
    (comp.lang.java.programmer)
  • Re: Linux/X-Windows unable to set focus on a modal form (Consulting $ anyone)
    ... focus is stolen from the window and you CANNOT use the keyboard or any ... Knute Johnson ... Posted via NewsDemon.com - Premium Uncensored Newsgroup Service ... Unlimited Access, Anonymous Accounts, Uncensored Broadband Access ...
    (comp.lang.java.gui)
  • Re: Using SwingWorker with user interaction
    ... according to a keyboard click change the graphical interface. ... I agree with Knute Johnson, however, you might try a well placed ... SwingUtilities.invokeAndWait in your background task. ...
    (comp.lang.java.gui)
  • How to enter characters beyond keyboard into JTextField?
    ... How do I enter characters from the keyboard that aren't on the keyboard? ... I thought on a Winblows machine that you could do that by holding down the ALT key and then typing a sequence of numbers. ... Knute Johnson ...
    (comp.lang.java.gui)