Forum Discussion
YMinaev
12 years agoStaff
Hi,
According to your screenshots, you should be able to use the second implementation of the SwingObject method. Instead of providing the native name of your button, use its class (JavaClassName) and caption (AWTComponentAccessibleName) property values.
Also, you can obtain the needed button by its AWTComponentAccessibleName property using the Find method:
According to your screenshots, you should be able to use the second implementation of the SwingObject method. Instead of providing the native name of your button, use its class (JavaClassName) and caption (AWTComponentAccessibleName) property values.
Also, you can obtain the needed button by its AWTComponentAccessibleName property using the Find method:
var yesBtn = Sys.Process("javaw", 2).SwingObject("JDialog", "Update BNMCUST table on Switch: CABLAB ?", -1, 1).SwingObject("JRootPane", "", 0).SwingObject("null.layeredPane").SwingObject("null.contentPane").SwingObject("JOptionPane", "", 0).SwingObject("OptionPane.buttonArea").Find("AWTComponentAccessibleName", "Yes", 1);
Related Content
- 6 years agosree2011
- 4 years agobryanhirst15223
Recent Discussions
- 3 days agoMW_Didata