/[classpath]/classpath/javax/swing/plaf/basic/BasicTableHeaderUI.java
ViewVC logotype

Diff of /classpath/javax/swing/plaf/basic/BasicTableHeaderUI.java

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.6.2.6 by gnu_andrew, Wed Nov 2 00:43:59 2005 UTC revision 1.6.2.7 by gnu_andrew, Sun Nov 27 21:00:40 2005 UTC
# Line 139  public class BasicTableHeaderUI extends Line 139  public class BasicTableHeaderUI extends
139    public void installUI(JComponent c)    public void installUI(JComponent c)
140    {    {
141      header = (JTableHeader) c;      header = (JTableHeader) c;
142        rendererPane = new CellRendererPane();
143      installDefaults();      installDefaults();
144      installKeyboardActions();      installKeyboardActions();
145      installListeners();      installListeners();
# Line 194  public class BasicTableHeaderUI extends Line 195  public class BasicTableHeaderUI extends
195                                                                  false, // isSelected                                                                  false, // isSelected
196                                                                  false, // isFocused                                                                  false, // isFocused
197                                                                  -1, i);                                                                  -1, i);
198                // FIXME: The following settings should be performed in
199                // rend.getTableCellRendererComponent().
200              comp.setFont(header.getFont());              comp.setFont(header.getFont());
201              comp.setBackground(header.getBackground());              comp.setBackground(header.getBackground());
202              comp.setForeground(header.getForeground());              comp.setForeground(header.getForeground());
203              if (comp instanceof JComponent)              if (comp instanceof JComponent)
204                ((JComponent)comp).setBorder(cellBorder);                ((JComponent)comp).setBorder(cellBorder);
205              gfx.translate(bounds.x, bounds.y);              rendererPane.paintComponent(gfx, comp, header, bounds.x, bounds.y,
206              gfx.setClip(0, 0, bounds.width, bounds.height);                                          bounds.width, bounds.height);
             comp.setSize(bounds.width, bounds.height);  
             comp.setLocation(0,0);  
             comp.paint(gfx);  
             gfx.translate(-bounds.x, -bounds.y);  
             gfx.setClip(oldClip);  
207            }            }
208        }        }
209    

Legend:
Removed from v.1.6.2.6  
changed lines
  Added in v.1.6.2.7

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26