-
Bug
-
Resolution: Fixed
-
P2
-
1.4.0
-
rc1
-
x86
-
windows_nt
-
Verified
Name: rmT116609 Date: 10/09/2001
Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.0-beta2-b77)
Java HotSpot(TM) Client VM (build 1.4.0-beta2-b77, mixed mode)
Operation System: Windows NT (4.0)
During an introspection, this method(setRowHeight(int)) was listed in
Java 1.3.0. 1.3.1_01, 1.4.0-beta-b65. But it is not listed anymore in
1.4.0-beta2-b77 though still documented and usable.
/* OUTPUT
J:\VisualMust\Src\Bugs and Tests>java -showversion TableRowHeightMerlin
java version "1.4.0-beta2"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.0-beta2-b77)
Java HotSpot(TM) Client VM (build 1.4.0-beta2-b77, mixed mode)
---------------------
J:\VisualMust\Src\Bugs and Tests>g:\jdk1.3.1\bin\java -showversion
TableRowHeightMerlin
java version "1.3.1"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.3.1-b24)
Java HotSpot(TM) Client VM (build 1.3.1-b24, mixed mode)
public void javax.swing.JTable.setRowHeight(int) <<<<<<<------------
---------------------
*/
/**
* TableRowHeightMerlin.java
*/
import java.lang.*;
import java.lang.reflect.*;
import java.awt.*;
import java.awt.event.*;
import java.util.*;
import java.text.*;
import java.beans.*;
import javax.swing.*;
import javax.swing.event.*;
import javax.swing.text.*;
/**
* Class: TableRowHeightMerlin
*/
public class TableRowHeightMerlin extends javax.swing.JFrame
{
/**
* Method: main <br>
* Note: Called only if we're an application. <br>
* @param java.lang.String[] args the command line arguments
* @return void
*/
public static void main(java.lang.String[] args)
{
try
{
BeanInfo beanInfo = Introspector.getBeanInfo(JTable.class);
PropertyDescriptor propDescs[] = beanInfo.getPropertyDescriptors();
for (int i = 0; i < propDescs.length; i++)
{
PropertyDescriptor prop = propDescs[i];
Method writeMethod = prop.getWriteMethod(); // setter
// Method readMethod = prop.getReadMethod(); // getter
// Class propertyType = prop.getPropertyType();
if (writeMethod != null && writeMethod.getName().equals("setRowHeight"))
{
System.out.println("" + writeMethod);
}
}
} /* End try */
catch (java.lang.Throwable exc)
{
exc.printStackTrace(System.err);
} /* End catch */
} /* End of Method: main */
} /* End of Class: TableRowHeightMerlin */
(Review ID: 133376)
======================================================================