Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / Tools / May 2005

Tip: Looking for answers? Try searching our database.

get cell renderer with Rational XDE Tester

Thread view: 
patricia.bryone@wanadoo.fr - 17 May 2005 13:13 GMT
I would like get the cell renderer in a JTable with rational XDE but it
seems be impossible.

My code :

TestObject
bj2=(TestObject)table.invoke("getCellRenderer","(II)Ljavax/swing/table/TableCellRenderer;",params);
params=new Object[6];
params[0]=table;
params[1]=null;
params[2]=new Boolean(false);
params[3]=new Boolean(false);
params[4]=new Integer(0);
params[5]=new Integer(0);
TestObject
obj3=(TestObject)obj2.invoke("getTableCellRendererComponent","(Ljavax/swing/JTable;Ljava/lang/Object;ZZII)Ljava/awt/Component;",params);

Exception :
com.rational.test.ft.BadArgumentException: Test Objects passed to the
Software Under Test must be registered references.

Someone can help me???

thx
damien.guerin2@wanadoo.fr - 23 May 2005 09:18 GMT
Thx for your help...
I resolve the problem by implementing a method in my JTable class which
calls getTableCellRendererComponent method of the Cell Renderer class.


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.