public static DisplayMode setDisplayMode(DisplayMode dm,
Create the display by choosing from a list of display modes based on an order of preference.
You must supply a list of allowable display modes, probably by calling getAvailableDisplayModes(),
and an array with the order in which you would like them sorted in descending order.
This method attempts to create the topmost display mode; if that fails, it will try the next one,
and so on, until there are no modes left. If no mode is set at the end, an exception is thrown.
dm - a list of display modes to choose from
param - the names of the DisplayMode fields in the order in which you would like them sorted.
the chosen display mode
java.lang.NoSuchFieldException - if one of the params is not a field in DisplayMode
java.lang.Exception - if no display mode could be set