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

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

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

revision 1.25 by abalkiss, Wed Aug 31 18:54:47 2005 UTC revision 1.26 by rabbit78, Mon Sep 12 19:09:34 2005 UTC
# Line 1030  public class BasicTableUI Line 1030  public class BasicTableUI
1030                  gfx.translate(-x, -y);                  gfx.translate(-x, -y);
1031                }                }
1032                y += height;                y += height;
               if (gap != null)  
                 y += gap.height;  
1033            }            }
1034          x += width;          x += width;
         if (gap != null)  
           x += gap.width;  
1035        }        }
1036    
1037      // tighten up the x and y max bounds      // tighten up the x and y max bounds
# Line 1053  public class BasicTableUI Line 1049  public class BasicTableUI
1049          boolean paintedLine = false;          boolean paintedLine = false;
1050          for (int c = 0; c < ncols && x < xmax; ++c)          for (int c = 0; c < ncols && x < xmax; ++c)
1051            {            {
1052              x += cols.getColumn(c).getWidth();;              x += cols.getColumn(c).getWidth();
1053              if (gap != null)              gfx.drawLine(x - gap.width, y0, x - gap.width, ymax);
               x += gap.width;  
             gfx.drawLine(x, y0, x, ymax);  
1054              paintedLine = true;              paintedLine = true;
1055            }            }
1056          gfx.setColor(save);          gfx.setColor(save);
# Line 1072  public class BasicTableUI Line 1066  public class BasicTableUI
1066          for (int r = 0; r < nrows && y < ymax; ++r)          for (int r = 0; r < nrows && y < ymax; ++r)
1067            {            {
1068              y += height;              y += height;
             if (gap != null)  
               y += gap.height;  
1069              gfx.drawLine(x0, y, xmax, y);              gfx.drawLine(x0, y, xmax, y);
1070              paintedLine = true;              paintedLine = true;
1071            }            }

Legend:
Removed from v.1.25  
changed lines
  Added in v.1.26

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