[debug] removed excess/redundant debug output in GUIUtil

This commit is contained in:
Daniel_M_Williams 2020-07-19 11:49:07 -04:00
parent e9981aff28
commit 56c60a0013

View File

@ -312,8 +312,11 @@ public class GUIUtil {
window.addComponentListener(new ComponentAdapter() {
@Override
public void componentResized(ComponentEvent e) {
final Dimension previousWindowSize = ((SwingPreferences)Application.getPreferences()).getWindowSize(window.getClass());
if( ! window.getSize().equals(previousWindowSize)) {
log.debug("Storing size of " + window.getClass().getName() + ": " + window.getSize());
((SwingPreferences) Application.getPreferences()).setWindowSize(window.getClass(), window.getSize());
}
if (window instanceof JFrame) {
if ((((JFrame) window).getExtendedState() & JFrame.MAXIMIZED_BOTH) == JFrame.MAXIMIZED_BOTH) {
log.debug("Storing maximized state of " + window.getClass().getName());