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

components embedded in JTable cells exhibit inconsistent behavior

XMLWordPrintable

    • sparc
    • solaris_2.5.1

      When a component of some sort is embedded in a JTable's cell, the behavior of the table/component interaction is inconsistent. For example, when a checkbox component is embedded in a cell and that cell is clicked on, the checkbox value changes, but that cell does not receive focus, and as a result neither does the row (if that's what the L&F settings are). The cell that does have focus flashes as if it had lost focus, then regains it. The same is true of comboboxes - you can select a cell with a combobox and (try to) change the value, but if that cell is in a different row, the new row does not receive focus.

      Comboboxes embedded in JTables act strangely (see bug id 4109453). In addition to the problems mentioned in the other bug, the comboboxes have problems displaying correctly if the width of the cell is less than the width of the entries in the list - the width of the list is the width of the cell and results in truncated list entries. If a combobox cell is at the bottom of the window and only a portion of the cell is visible, clicking on the cell to draw the list of entries shows a gap between the bottom of the window frame and the list.

      Resizing the combobox cell column when a combobox cell is selected results in the selected cell being left behind when resizing is done, and the floating combobox has an empty pulldown list.

      Finally, on occasion the combobox list is displayed at screen id 0,0 when the application is first started.

            erapinsunw Eric Rapin (Inactive)
            duke J. Duke
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: