bug-classpath
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Bug swing/52675] New: JComboBox within a JTable does not render


From: Steven_Carr at yahoo dot com
Subject: [Bug swing/52675] New: JComboBox within a JTable does not render
Date: Thu, 22 Mar 2012 18:58:35 +0000

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52675

             Bug #: 52675
           Summary: JComboBox within a JTable does not render
    Classification: Unclassified
           Product: classpath
           Version: 0.98
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: swing
        AssignedTo: address@hidden
        ReportedBy: address@hidden


classpath from CVS dated 2012-03-21
JAMVM version 1.5.4

   I have a JTable with JComboBox controls that works with both openJDK and
SunJDK.   When using classpath, the cells are empty until clicked on, then the
combo box becomes visible.

I tracked it down to javax/swing/plaf/metal/MetalComboBoxUI.java paint() which
is called by CellRenderPane.paintComponent().

  public void paint(Graphics g, JComponent c)
  {
    // do nothing, the button and text field are painted elsewhere
  }

If I comment out the function, or add super.paint(g,c) the currently selected
item is displayed in the cell without the border and arrowButton.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]