Browse Source

遍历控件名问题

master
XiaXiang 7 years ago
parent
commit
18317e45a1
  1. 4
      designer_base/src/com/fr/design/actions/UpdateAction.java

4
designer_base/src/com/fr/design/actions/UpdateAction.java

@ -504,9 +504,13 @@ public abstract class UpdateAction extends ShortCut implements Action {
} else if (component instanceof JComboBox) { } else if (component instanceof JComboBox) {
for (int i = 0; i < ((JComboBox) component).getItemCount(); i++) { for (int i = 0; i < ((JComboBox) component).getItemCount(); i++) {
Object object = ((JComboBox) component).getItemAt(i);
if (object instanceof String) {
text.append(((JComboBox) component).getItemAt(i)); text.append(((JComboBox) component).getItemAt(i));
String title = String.valueOf(((JComboBox) component).getItemAt(i)); String title = String.valueOf(((JComboBox) component).getItemAt(i));
handleSearchText(separator, text, pinyin, shortPinyin, title); handleSearchText(separator, text, pinyin, shortPinyin, title);
}
} }
} else if (component instanceof JTabbedPane) { } else if (component instanceof JTabbedPane) {

Loading…
Cancel
Save