From: Nandan <ba...@cs...> - 2004-12-09 20:27:50
|
I get the following error TypeError: createRigidArea(): 1st arg can't be coerced to java.awt.Dimension with this code: import javax.swing as sw .. pa=sw.Box(sw.BoxLayout.X_AXIS) pa.add(sw.Box.createRigidArea( (10,100) )) Whereas this works fine: pa.add(sw.Box.createRigidArea( aw.Dimension(10,100) )) AFAIK, this should be converted to the Java type using 'reflection'. What am I doing wrong? TIA, -- Nandan Bagchee Patriots don't use Linux. -- c.o.l.a |