Re: Problem with focus

From: Andrey Kuznetsov (spam0_at_imagero.com.invalid)
Date: 01/12/05


Date: Wed, 12 Jan 2005 11:22:01 +0100


>> > That was often required when using requestFocus() prior to JDK 1.4,
>> > but I do not think it has been necessary since the 1.4 focus rewrite.
>>
>> I know at least one app where it was nesessery (yes it was JDK 1.4)
>
> Can you explain the conditions under which it was necessary? Or better
> yet, provide a runnable example of this?

you can download jgui source and search for SwingUtilities.invokeLater()
however it is used not for focus issues,
but for repacking components after undocking.

-- 
Andrey Kuznetsov
http://uio.dev.java.net Unified I/O for Java
http://reader.imagero.com Java image reader
http://jgui.imagero.com Java GUI components and utilities


Relevant Pages

  • Re: Intercept and modify mouse events
    ... The biggest problem is that getComponentAt(int x, int y, boolean b) is ... take your components away from tree - for example with CellRendererPane ... http://uio.imagero.com Unified I/O for Java ... http://jgui.imagero.com Java GUI components and utilities ...
    (comp.lang.java.gui)
  • Re: autofocus in JScrollPane
    ... In my application in one fixed size JScrollPane user can ... http://uio.dev.java.net Unified I/O for Java ... http://jgui.imagero.com Java GUI components and utilities ...
    (comp.lang.java.help)
  • Re: No repaints / frozen GUI
    ... > log file. ... > unfortunately I don't have access to all the source code. ... http://uio.dev.java.net Unified I/O for Java ... http://jgui.imagero.com Java GUI components and utilities ...
    (comp.lang.java.gui)
  • Re: public boolean imageUpdate of ImageObserver
    ... http://uio.imagero.com Unified I/O for Java ... http://reader.imagero.com Java image reader ... http://jgui.imagero.com Java GUI components and utilities ... Prev by Date: ...
    (de.comp.lang.java)
  • Re: size of a string in pixel ?
    ... > the thing is that in order to preserve the layout, ... http://uio.imagero.com Unified I/O for Java ... http://reader.imagero.com Java image reader ... http://jgui.imagero.com Java GUI components and utilities ...
    (comp.lang.java.gui)