Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-4075979

Adding components to gridbag clears terminal window selection.

    XMLWordPrintable

Details

    • generic
    • solaris_2.5.1

    Description

       This is on CDE. I had a terminal window open with some text selected in it.

      In the Editor, I brought up the insert image dialog box.

      The selection in the terminal window went away. This should not happen.
      --akm 6/3/97

      Using DevPro's JDK 1.1.3A.
      I reproduced this in the JavaStudio HTML editor's InsertLink dialog among others.

      The problem occurs in gridbag-using dialogs which perform an add which
      ultimately results in Container.addNotify(). In the addNotify() component loop:
      for (int i = 0 ; i < ncomponents ; i++) {
      component[i].addNotify();
      }

      (i = 2, in my case) the Terminal window's selection is cleared.

      The problem does not seem to occur in dialogs using Border, Flow, or JWS's Column layouts.

      I've reproduced in CDE Terminal windows and xterms.
      Changing synopsis from "Insert Image dialog box removed selection in other window"
      This bug is a "mirror" of JWS bug #4056231
      --emk 9/1/97

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              emcknigh Ed Mcknight (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:
                Imported:
                Indexed: