JTextArea becomes non-editable in a JApplet

Discussion in 'Java' started by Thomas Richter, Jun 6, 2011.

  1. Hi folks,

    apparently, the Oracle Java-VM seems to have a bug in its JApplet or
    JTextArea implementation, at least in the Linux implementation for the
    firefox plugin.

    The problem is that, under circumstances described below, JTextArea
    components in an JApplet become un-editable, and even clicking into them
    does not regain focus. This renders such input components rather useless
    and causes a lot of confusion at the user.

    The problem appears (at least) when a JApplet opens a ProgressMonitor;
    at this time, the JTextArea (rightfully) looses the focus. When the
    progress monitor is, however, closed afterwards, the JTextArea does not
    get the input focus again. In fact, even clicking into it, or any other
    JTextArea on the same JApplet does not improve anything. While the
    buttons in the JApplet just work normally, the text input components do
    not react at all.

    To get the focus again, the user has first to click onto any other
    window on the screen, or into the URL field of the browser, and *then*
    click again into the JTextArea - this returns focus to it.

    I tried a couple of work-arounds to regain the focus, including removing
    the component and re-creating it, actively requesting the focus and
    others; nothing helped. The best I could get was a cursor drawn in the
    field, but the cursor did not react on keyboard input.

    Appears in java 1.6.0_24, AMD64 architecture, firefox plug-in.

    Is this a known problem? Are there any known workarounds?

    Thomas Richter, Jun 6, 2011
    1. Advertisements

  2. Roedy Green

    Roedy Green Guest

    On Mon, 06 Jun 2011 17:45:18 +0200, Thomas Richter
    <-berlin.de> wrote, quoted or indirectly quoted someone
    who said :

    >Is this a known problem? Are there any known workarounds?

    I have seen similar thing with AWT and Swing with copy/paste sometimes
    working and sometimes not on Windows

    Roedy Green Canadian Mind Products
    How long did it take after the car was invented before owners understood
    cars would not work unless you regularly changed the oil and the tires?
    We have gone 33 years and still it is rare to uncover a user who
    understands computers don't work without regular backups.
    Roedy Green, Jun 8, 2011
    1. Advertisements

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Larry Rekow
    Lucas Tam
    Aug 29, 2004
  2. =?Utf-8?B?VmVua2k=?=

    Validator error message label becomes editable - Bug

    =?Utf-8?B?VmVua2k=?=, Sep 25, 2004, in forum: ASP .Net
    Hermit Dave
    Sep 25, 2004
  3. pat270881

    non editable JTable

    pat270881, Apr 6, 2005, in forum: Java
    Christian Kaufhold
    Apr 6, 2005
  4. Replies:
    Juha Nieminen
    Aug 22, 2007
  5. Stef Mientki

    and becomes or and or becomes and

    Stef Mientki, May 22, 2011, in forum: Python
    Chris Angelico
    May 28, 2011

Share This Page