equal
deleted
inserted
replaced
2989 return -1; |
2989 return -1; |
2990 } |
2990 } |
2991 |
2991 |
2992 /** |
2992 /** |
2993 * Causes this table to lay out its rows and columns. Overridden so |
2993 * Causes this table to lay out its rows and columns. Overridden so |
2994 * that columns can be resized to accomodate a change in the size of |
2994 * that columns can be resized to accommodate a change in the size of |
2995 * a containing parent. |
2995 * a containing parent. |
2996 * Resizes one or more of the columns in the table |
2996 * Resizes one or more of the columns in the table |
2997 * so that the total width of all of this <code>JTable</code>'s |
2997 * so that the total width of all of this <code>JTable</code>'s |
2998 * columns is equal to the width of the table. |
2998 * columns is equal to the width of the table. |
2999 * <p> |
2999 * <p> |
3012 * amongst the available columns. |
3012 * amongst the available columns. |
3013 * <p> |
3013 * <p> |
3014 * The modes are: |
3014 * The modes are: |
3015 * <ul> |
3015 * <ul> |
3016 * <li> AUTO_RESIZE_OFF: Don't automatically adjust the column's |
3016 * <li> AUTO_RESIZE_OFF: Don't automatically adjust the column's |
3017 * widths at all. Use a horizontal scrollbar to accomodate the |
3017 * widths at all. Use a horizontal scrollbar to accommodate the |
3018 * columns when their sum exceeds the width of the |
3018 * columns when their sum exceeds the width of the |
3019 * <code>Viewport</code>. If the <code>JTable</code> is not |
3019 * <code>Viewport</code>. If the <code>JTable</code> is not |
3020 * enclosed in a <code>JScrollPane</code> this may |
3020 * enclosed in a <code>JScrollPane</code> this may |
3021 * leave parts of the table invisible. |
3021 * leave parts of the table invisible. |
3022 * <li> AUTO_RESIZE_NEXT_COLUMN: Use just the column after the |
3022 * <li> AUTO_RESIZE_NEXT_COLUMN: Use just the column after the |
3102 * (MAX - PREF) |
3102 * (MAX - PREF) |
3103 * </PRE> |
3103 * </PRE> |
3104 * <P> |
3104 * <P> |
3105 * The overall effect is that the total size moves that same percentage, |
3105 * The overall effect is that the total size moves that same percentage, |
3106 * k, towards the total minimum or maximum and that percentage guarantees |
3106 * k, towards the total minimum or maximum and that percentage guarantees |
3107 * accomodation of the required space, DELTA. |
3107 * accommodation of the required space, DELTA. |
3108 * |
3108 * |
3109 * <H4>Details</H4> |
3109 * <H4>Details</H4> |
3110 * <P> |
3110 * <P> |
3111 * Naive evaluation of the formulae presented here would be subject to |
3111 * Naive evaluation of the formulae presented here would be subject to |
3112 * the aggregated rounding errors caused by doing this operation in finite |
3112 * the aggregated rounding errors caused by doing this operation in finite |