posted 8 years ago
Hello,
I am trying to get the names of the subcomponents of a JMenu, I am working in Linux.
my code is this:
This gets me the text of each JCheckBoxMenuItem. It works.
There are 14 JCheckBoxMenuItems in the JMenu "lookAndFeelMenu"
4 of them (the ones available on my system)
Metal
Nimbus
CDE/Motif
GTK+
are created like this:
If I try to get the name, by invoking "item.getName()" it returns null for all the hardcoded JCheckBoxMenuItems except the 4 above
Any info please?
Regards,
George