modes = (MyDisplayMode []) acceptableModes.toArray(new MyDisplayMode[acceptableModes.size()]);
     public DisplayModesComboBoxModels(){         DisplayMode currentMode = defaultConfiguration.getDevice().getDisplayMode();         selection = new MyDisplayMode(currentMode);         DisplayMode[]  displayModes  = defaultConfiguration.getDevice().getDisplayModes();         modes = new MyDisplayMode[displayModes.length];         for (int i = 0 ; i < displayModes.length ; i ++){             modes[i] = new MyDisplayMode(displayModes[i]);         }            }