[gui][PATCH] allow Panels to become focused

Thomas Fitzsimmons fitzsim@redhat.com
Sat Jul 10 05:14:00 GMT 2004


Hi,

I'm committing this patch to java-gui-branch.  It allows Panels to
become focused when they are clicked.  The patch also contains
miscellaneous paramString and focus handling fixes.

Tom

2004-07-10  Thomas Fitzsimmons  <fitzsim@redhat.com>

	* gnu/java/awt/peer/gtk/GtkPanelPeer.java (handleEvent): Handle
	MOUSE_PRESSED event.
	* java/awt/Component.java (requestFocus()): Handle Panel
	specially.  Post FOCUS_LOST event on opposite component.
	(requestFocus(boolean)): Likewise.
	(requestFocusInWindow(boolean)): Likewise.
	(paramString): Reorder dimension fields.
	* java/awt/Container.java (paramString): Fix string format.
	* java/awt/DefaultKeyboardFocusManager.java (dispatchEvent):
	Handle FOCUS_LOST events.  Don't handle Windows specially.  Only
	process key events if the focus owner is non-null.
	(dispatchKeyEvent): Likewise.
	* java/awt/Frame.java (paramString): Fix formatting.
	(generateName): New method.
	(getUniqueLong): Likewise.
	* java/awt/KeyboardFocusManager.java (getFocusOwner): Check if
	the temporary focus owner is null.  If so, return the permanent
	focus owner.
	* java/awt/Panel.java (generateName): New method.
	(getUniqueLong): Likewise.
	* jni/gtk-peer/gnu_java_awt_peer_gtk_GtkWindowPeer.c: Rework
	signal handling to make callbacks more specific.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: focus-panel-fixes4.patch
Type: text/x-patch
Size: 24181 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/java-patches/attachments/20040710/e8be0040/attachment.bin>


More information about the Java-patches mailing list