Class JComboBoxes

    • Constructor Detail

      • JComboBoxes

        public JComboBoxes()
    • Method Detail

      • getSelectedItem

        public static <E> E getSelectedItem(JComboBox<E> comboBox)
        Method to get the selected item of a JComboBox without casting.
        Parameters:
        comboBox - the combo box to get the selected item from.
        Returns:
        the selected element.