Mailingliste - Einträge 2005

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

[qftestJUI] Clicking JComboBox

  • Subject: [qftestJUI] Clicking JComboBox
  • From: Bastian Bowe <Bastian.Bowe@?.de>
  • Date: Thu, 7 Jul 2005 15:12:19 +0200


is there a way to click and record a JComboBox in a intuitive way? The
problem we are facing is that almost all of our important components are
named via setName() including the JComboBoxes. Unfortunately does
recording a click on a JComboBox result in a click on a unnamed button

We found out that we could record all subcomponents of a panel and then
extract the JComboBoxes. Now we could copy their ids and modify the MPRC
Events accordingly. This is not practical to us because it's too much
work. Naming the buttons in Java isn't either because it would end up in
stupid code hard to maintain like this:
JComboBox rcb = ...
  ((javax.swing.plaf.basic.ComboPopup) rcb.getUI()

Are there better solutions?

Best regards