Hi, I've created a menu tick box in my Java app. That was really easy and straight forward. Unfortunately I've had no luck in getting the state of the tick box menu (ticked or not).
Any help would be much appreciated.
My tick box menu code.
Code:// create the Connections menu JMenu connections = new JMenu("Connections"); connections.setMnemonic(KeyEvent.VK_O); connections.add(new JCheckBoxMenuItem("Transmitter", true)); connections.add(new JCheckBoxMenuItem("Reciever", true));