15 * You should have received a copy of the GNU General Public License version
16 * 2 along with this work; if not, write to the Free Software Foundation,
17 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
18 *
19 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
20 * or visit www.oracle.com if you need additional information or have any
21 * questions.
22 */
23 import java.util.Date;
24 import java.util.Hashtable;
25 import javax.swing.Icon;
26 import javax.swing.ImageIcon;
27 import javax.swing.JTable;
28 import javax.swing.SwingUtilities;
29
30 /**
31 * @test
32 * @bug 8031971 8039750
33 * @author Alexander Scherbatiy
34 * @summary Use only public methods in the SwingLazyValue
35 * @run main bug8031971
36 */
37 public class bug8031971 {
38
39 static Object[][] RENDERERS = {
40 {Object.class, "javax.swing.table.DefaultTableCellRenderer$UIResource"},
41 {Number.class, "javax.swing.JTable$NumberRenderer"},
42 {Float.class, "javax.swing.JTable$DoubleRenderer"},
43 {Double.class, "javax.swing.JTable$DoubleRenderer"},
44 {Date.class, "javax.swing.JTable$DateRenderer"},
45 {Icon.class, "javax.swing.JTable$IconRenderer"},
46 {ImageIcon.class, "javax.swing.JTable$IconRenderer"},
47 {Boolean.class, "javax.swing.JTable$BooleanRenderer"}
48 };
49
50 static Object[][] EDITORS = {
51 {Object.class, "javax.swing.JTable$GenericEditor"},
52 {Number.class, "javax.swing.JTable$NumberEditor"},
53 {Boolean.class, "javax.swing.JTable$BooleanEditor"}
54 };
55
|
15 * You should have received a copy of the GNU General Public License version
16 * 2 along with this work; if not, write to the Free Software Foundation,
17 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
18 *
19 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
20 * or visit www.oracle.com if you need additional information or have any
21 * questions.
22 */
23 import java.util.Date;
24 import java.util.Hashtable;
25 import javax.swing.Icon;
26 import javax.swing.ImageIcon;
27 import javax.swing.JTable;
28 import javax.swing.SwingUtilities;
29
30 /**
31 * @test
32 * @bug 8031971 8039750
33 * @author Alexander Scherbatiy
34 * @summary Use only public methods in the SwingLazyValue
35 * @run main/othervm bug8031971
36 */
37 public class bug8031971 {
38
39 static Object[][] RENDERERS = {
40 {Object.class, "javax.swing.table.DefaultTableCellRenderer$UIResource"},
41 {Number.class, "javax.swing.JTable$NumberRenderer"},
42 {Float.class, "javax.swing.JTable$DoubleRenderer"},
43 {Double.class, "javax.swing.JTable$DoubleRenderer"},
44 {Date.class, "javax.swing.JTable$DateRenderer"},
45 {Icon.class, "javax.swing.JTable$IconRenderer"},
46 {ImageIcon.class, "javax.swing.JTable$IconRenderer"},
47 {Boolean.class, "javax.swing.JTable$BooleanRenderer"}
48 };
49
50 static Object[][] EDITORS = {
51 {Object.class, "javax.swing.JTable$GenericEditor"},
52 {Number.class, "javax.swing.JTable$NumberEditor"},
53 {Boolean.class, "javax.swing.JTable$BooleanEditor"}
54 };
55
|