private void loadPreferences(GCPreferences preferences) {
if (preferences.isPropertiesLoaded()) {
for (Entry<String, JCheckBoxMenuItem> menuEntry : gcLineMenuItems.entrySet()) {
JCheckBoxMenuItem item = menuEntry.getValue();
item.setState(preferences.getGcLineProperty(menuEntry.getKey()));
viewMenuActionListener.actionPerformed(new ActionEvent(item, 0, item.getActionCommand()));
}
setBounds(preferences.getWindowX(),
preferences.getWindowY(),
preferences.getWindowWidth(),
preferences.getWindowHeight());