GraphicsConfiguration reversing monitor order in GraphicsDevice
I have a rather perplexing problem, for me anyway. I am modifying very large swing application to facilitate a dual monitor configuration (using JSE 1.6.20). The issue is that the application does not always properly identify the primary and secondary monitors correctly.
GraphicsConfiguration.getScreenDevices() sometimes returns the the monitors in the proper order and sometimes does not. It varies by the computer on which it's being tested. I have noticed that if I create a JFrame without a GraphicsConfiguration, it will always present on the correct screen (monitor 1 of 2). My work around has been to snatch the value of GraphicsDevice.getIDstring() from the properly-displayed JFrame and sort GraphicsDevice by that value placing the entry with that value as the first element in that array. It works like a charm but I shouldn't have to do that.
IT has checked all the drivers on the computers we have tested on and they are exactly the same versions. I have also made sure the monitor setup is correct. Anyone have any ideas? Is this a known bug or am I missing something?