Package javax.swing

Examples of javax.swing.JComboBox.removeItem()


        if (JOptionPane.showConfirmDialog(
            deleteButton,
            String.format("Do you really want to delete \"%s\"?",
                preset.getName())) == JOptionPane.YES_OPTION) {
          presets.remove(preset);
          presetCombo.removeItem(preset);
          // TODO sr137: put all this preset functionality in own model
        }
      }

    });
View Full Code Here


        removeButton.setToolTipText(resourceBundle.getString("device.manual.remove.tooltip"));
        removeButton.addActionListener(new ActionListener() {

          public void actionPerformed(ActionEvent e) {
            Object selected = manualDeviceList.getSelectedItem();
            manualDeviceList.removeItem(selected);
            if (manualDeviceList.getItemCount() == 0) {
              manualDeviceList.setVisible(false);
            }
            deviceList.removeItem(selected);
            deviceList.invalidate();
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.