[debug] removed excess/redundant debug output in GUIUtil
This commit is contained in:
parent
e9981aff28
commit
56c60a0013
@ -312,8 +312,11 @@ public class GUIUtil {
|
|||||||
window.addComponentListener(new ComponentAdapter() {
|
window.addComponentListener(new ComponentAdapter() {
|
||||||
@Override
|
@Override
|
||||||
public void componentResized(ComponentEvent e) {
|
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());
|
log.debug("Storing size of " + window.getClass().getName() + ": " + window.getSize());
|
||||||
((SwingPreferences) Application.getPreferences()).setWindowSize(window.getClass(), window.getSize());
|
((SwingPreferences) Application.getPreferences()).setWindowSize(window.getClass(), window.getSize());
|
||||||
|
}
|
||||||
if (window instanceof JFrame) {
|
if (window instanceof JFrame) {
|
||||||
if ((((JFrame) window).getExtendedState() & JFrame.MAXIMIZED_BOTH) == JFrame.MAXIMIZED_BOTH) {
|
if ((((JFrame) window).getExtendedState() & JFrame.MAXIMIZED_BOTH) == JFrame.MAXIMIZED_BOTH) {
|
||||||
log.debug("Storing maximized state of " + window.getClass().getName());
|
log.debug("Storing maximized state of " + window.getClass().getName());
|
||||||
|
Loading…
x
Reference in New Issue
Block a user