Bug 29448 - Swing demo content does not resize
Summary: Swing demo content does not resize
Status: RESOLVED FIXED
Alias: None
Product: classpath
Classification: Unclassified
Component: swing (show other bugs)
Version: unspecified
: P3 blocker
Target Milestone: 0.93
Assignee: Roman Kennke
URL:
Keywords:
: 29214 (view as bug list)
Depends on:
Blocks:
 
Reported: 2006-10-13 09:25 UTC by david.gilbert
Modified: 2006-10-18 09:21 UTC (History)
2 users (show)

See Also:
Host:
Target:
Build:
Known to work:
Known to fail:
Last reconfirmed: 2006-10-13 12:41:12


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description david.gilbert 2006-10-13 09:25:41 UTC
If you run the Swing demo then maximize the frame, the content of the frame stays the same size.  This is using CVS HEAD.
Comment 1 Roman Kennke 2006-10-13 09:34:11 UTC
I see this too.
Comment 2 Roman Kennke 2006-10-13 12:41:12 UTC
Even worse, it seems we can't close Windows by clicking the X button of the window. We can't release that crap ;-) I suspect some problems in the event dispatching code. I'll take care of it.
Comment 3 cvs-commit@developer.classpath.org 2006-10-13 15:16:21 UTC
Subject: Bug 29448

CVSROOT:	/cvsroot/classpath
Module name:	classpath
Changes by:	Roman Kennke <rabbit78>	06/10/13 15:15:13

Modified files:
	java/awt       : Component.java 
	gnu/java/awt/peer/gtk: GtkWindowPeer.java 
	.              : ChangeLog 
Added files:
	gnu/java/awt   : ComponentReshapeEvent.java 

Log message:
	2006-10-13  Roman Kennke  <kennke@aicas.com>
	
		PR 29448
		* java/awt/Component.java
		(dispatchEventImpl): Special handle ComponentReshapeEvents to
		update the AWT's knowledge about a component's size.
		* gnu/java/awt/ComponentReshapeEvent.java: New class.
		* gnu/java/awt/peer/gtk/GtkWindowPeer.java
		(postConfigureEvent): Directly dispatch a ComponentReshapeEvent
		to update the AWT's knowledge about the component bounds.

CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/classpath/gnu/java/awt/ComponentReshapeEvent.java?cvsroot=classpath&rev=1.1
http://cvs.savannah.gnu.org/viewcvs/classpath/java/awt/Component.java?cvsroot=classpath&r1=1.149&r2=1.150
http://cvs.savannah.gnu.org/viewcvs/classpath/gnu/java/awt/peer/gtk/GtkWindowPeer.java?cvsroot=classpath&r1=1.53&r2=1.54
http://cvs.savannah.gnu.org/viewcvs/classpath/ChangeLog?cvsroot=classpath&r1=1.8677&r2=1.8678



Comment 4 Roman Kennke 2006-10-16 10:13:21 UTC
The Window resizing issue is solved. What remains is the inability to close a window by pressing the X button of the window manager decorations.
Comment 5 Christian Thalinger 2006-10-16 10:30:43 UTC
*** Bug 29214 has been marked as a duplicate of this bug. ***
Comment 6 Roman Kennke 2006-10-18 09:21:50 UTC
There was some mistakes in the window event handling that prevented Swing windows from beeing closed. This is fixed in CVS.
Comment 7 cvs-commit@developer.classpath.org 2006-10-18 09:28:32 UTC
Subject: Bug 29448

CVSROOT:	/cvsroot/classpath
Module name:	classpath
Changes by:	Roman Kennke <rabbit78>	06/10/18 09:18:55

Modified files:
	java/awt       : Window.java 
	javax/swing    : JFrame.java JDialog.java JWindow.java 
	.              : ChangeLog 

Log message:
	2006-10-18  Roman Kennke  <kennke@aicas.com>
	
		PR 29448
		* java/awt/Window.java
		(eventTypeEnabled): Overridden to handle WindowEvents.
		(processEvent): Switch between processWindowEvent(),
		processWindowFocusEvent() and processWindowStateEvent() here,
		rather than simply calling processWindowEvent().
		(processWindowEvent): Only dispatch event to listener, do not
		switch to processWindowFocusEvent() or processWindowStateEvent()
		here.
		* javax/swing/JFrame.java
		(frameInit): Explicitly enable window and key events here.
		(processWindowEvent): Throw out some unnecessary code.
		* javax/swing/JWindow.java
		(windowInit): Explicitly enable key events here.
		* javax/swing/JDialog.java
		(close_action): Renamed to closeAction.
		(dialogInit): Explicitly enable window events here.
		(getDefaultCloseOperation): Renamed close_action to closeAction.
		(processWindowEvent): Throw out some unnecessary code.
		Renamed close_action to closeAction.
		(setDefaultCloseOperation): Renamed close_action to closeAction.

CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/classpath/java/awt/Window.java?cvsroot=classpath&r1=1.75&r2=1.76
http://cvs.savannah.gnu.org/viewcvs/classpath/javax/swing/JFrame.java?cvsroot=classpath&r1=1.36&r2=1.37
http://cvs.savannah.gnu.org/viewcvs/classpath/javax/swing/JDialog.java?cvsroot=classpath&r1=1.22&r2=1.23
http://cvs.savannah.gnu.org/viewcvs/classpath/javax/swing/JWindow.java?cvsroot=classpath&r1=1.26&r2=1.27
http://cvs.savannah.gnu.org/viewcvs/classpath/ChangeLog?cvsroot=classpath&r1=1.8694&r2=1.8695