Mailing list - Entries of 2005


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

[qftestJUI] Still having JCombobox problems


  • Subject: [qftestJUI] Still having JCombobox problems
  • From: Bastian Bowe <Bastian.Bowe@?.de>
  • Date: Mon, 18 Jul 2005 14:25:02 +0200

Hello,

qftest (still) makes trouble with recognising subcomponents of JComboBox.
We recorded all our components including JCombobox. JComboBox components,
among most others, are having a name set via setName.

Unfortunately, when recording activities on a JCombobox the subcomponents
of JCombobox get automatically recorded to a strange location. The Ids are
something like foo.bar.MainFrame.list and so on. After moving them to the
desired node in our component hierarchy and renaming them to a reasonable
name the recorded activities aren't working anymore cause the components
can't get find.

As stated in a previous mail we could name subcomponents with
JComboBox rcb = ...
  ((javax.swing.plaf.basic.ComboPopup) rcb.getUI()
                    .getAccessibleChild(rcb,
0)).getList().setName("ListFoo");
                rcb.getComponent(0).setName("ButtonFoo");

Is there another way to work around our problem?

Kind regards

Bastian


Videos Downloads Documentation Buy Free Trial