Mailingliste - Einträge 2005


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[qftestJUI] Setting a table columnwidth width SUT-Script


  • Subject: [qftestJUI] Setting a table columnwidth width SUT-Script
  • From: "Weimann Horst" <Horst.Weimann@?.de>
  • Date: Tue, 1 Feb 2005 11:13:21 +0100

Hi all,

 

Consider the following problem:

 

We are trying to change the columnwidth for a JTable via a SUT-Script.

Getting the columnwidth just works fine, but adjusting the width to a new  value fails with a NPE.

 

Any ideas what´s going wrong?

 

Example Script:

-------------------------------------------------------------------------------------------------------------

table = rc.getComponent("ID_Of_Component")

oldWidth = table.getColumnModel().getColumn(0).getWidth()

newWidth = table.getColumnModel().getColumn(0).setWidth(oldWidth * 2)

table.revalidate()

table.repaint()

-------------------------------------------------------------------------------------------------------------

 

 

Regards

 

Horst Weimann

 

CURSOR Software AG
Friedrich-List-Strasse 31
35398 Giessen             

Tel.      (+49) (0) 6 41/4 00 00 -800       horst.weimann@?.de
Fax      (+49) (0) 6 41/4 00 00 -666       http://www.cursor.de
---------------------------------------------------------------------------------------------------------
Unsere Kundenunterstützung : Support@?.de  oder Tel. (+49) (0) 641/40000 -911

 

 

 


Videos Downloads Dokumentation Kaufen Gratis Testen