-
Bug
-
Resolution: Won't Fix
-
P5
-
None
-
1.2.1
-
sparc
-
solaris_2.6
adjustSizes method for SizeRequirements is suppose to adjust a specified array
of sizes by a given amount. Instead it returns an int[0] which equals to size 0.
The comment in the source code said that this method was used by JTable - which now uses a different technique. What technique would that be.
Test Case:
import java.awt.*;
import javax.swing.*;
import javax.swing.border.*;
public class Test {
public static void main(String[] args) {
SizeRequirements sr = new SizeRequirements();
System.out.println(sr.toString());
SizeRequirements s1 = new SizeRequirements(3,1,2,(float)0.75);
SizeRequirements s2 = new SizeRequirements(1,2,3,(float)0.7);
SizeRequirements s3 = new SizeRequirements(2,3,1,(float)0.8);
SizeRequirements[] children = {s1,s2,s3};
int[] foo = sr.adjustSizes(1,children);
// Will show that size of array is 0(zero)
System.out.println(foo.length);
for (int i=0; i<foo.length; i++ ) {
// Print each item of the array.
System.out.println(foo[i]);
}
}
}
gary.collins@East 1999-07-08
of sizes by a given amount. Instead it returns an int[0] which equals to size 0.
The comment in the source code said that this method was used by JTable - which now uses a different technique. What technique would that be.
Test Case:
import java.awt.*;
import javax.swing.*;
import javax.swing.border.*;
public class Test {
public static void main(String[] args) {
SizeRequirements sr = new SizeRequirements();
System.out.println(sr.toString());
SizeRequirements s1 = new SizeRequirements(3,1,2,(float)0.75);
SizeRequirements s2 = new SizeRequirements(1,2,3,(float)0.7);
SizeRequirements s3 = new SizeRequirements(2,3,1,(float)0.8);
SizeRequirements[] children = {s1,s2,s3};
int[] foo = sr.adjustSizes(1,children);
// Will show that size of array is 0(zero)
System.out.println(foo.length);
for (int i=0; i<foo.length; i++ ) {
// Print each item of the array.
System.out.println(foo[i]);
}
}
}
gary.collins@East 1999-07-08