Java JComboBox Model convertDefaultComboBoxModelToVector( DefaultComboBoxModel model)

Here you can find the source of convertDefaultComboBoxModelToVector( DefaultComboBoxModel model)

Description

convert Default Combo Box Model To Vector

License

Open Source License

Declaration

public static Vector convertDefaultComboBoxModelToVector(
            DefaultComboBoxModel model) 

Method Source Code

//package com.java2s;
import javax.swing.*;

import java.util.*;

public class Main {
    public static Vector convertDefaultComboBoxModelToVector(
            DefaultComboBoxModel model) {
        Vector v = new Vector();
        for (int i = 0; i < model.getSize(); i++) {
            v.add(model.getElementAt(i));
        }//from   www. j  a v  a  2 s  . co  m
        return v;

    }
}

Related

  1. addItem(DefaultComboBoxModel model, String elem)
  2. addItems(DefaultComboBoxModel comboBox, Iterable items)
  3. comboBoxContains(DefaultComboBoxModel model, Object obj)
  4. generateComboModel(Object[] values)
  5. generateInsertWhereComboBoxModel(String label)
  6. getComboModelList(ComboBoxModel model)
  7. getNewDefaultComboBoxModel(ArrayList itemsToStream)