Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix 12855 Failed to start game (#12856)
* Fix issue 12826 (UnitSeparator#categorize:213 - java.util.ConcurrentModificationException) PlacePanel.java - new method updateUnitsInUnitsToPlacePanel that ensures copying the unit collection (existed already in method updateStep, but not in gameDataChanged or updateUnits) - Cleanup: extract new methods from declaration of variable placeMapSelectionListener which are getUnitsToPlace, getScrollPaneFromChooser, getPreferredHeight and getPreferredWidth * PlayerUnitsPanel ToDo done via redraw Replace invalidate(); validate(); revalidate();getParent().invalidate(); with SwingComponents.redraw(this); * tab Players - tooltips for technologies Smaller fixes: - SwingConstants instead of JLable - method setStatColumns with List.toArray - rename gameData to gameDataSync - introduce synchronized method TechTableModel.getDataAndInitRowMap() * Fix 12855 Failed to start game Example map: World War II v3 1941 UnsupportedOperationException caused by Arrays.asList (=fixed size list) followed with method call add()
- Loading branch information