From proetel at aicas.com Mon Feb 7 04:50:11 2011 From: proetel at aicas.com (proetel at aicas.com) Date: Mon, 07 Feb 2011 13:50:11 +0100 Subject: [PATCH] Forward state of the resizable flag and the current title from the AWT component to the platform window Message-ID: # HG changeset patch # User Ingo Proetel # Date 1297082041 -3600 # Node ID d8512cf14329ac1a7f43ae9a06602e8098595d6d # Parent 57d57810636ce95d84614f6768ec496bb8afc2cd Forward state of the resizable flag and the current title from the AWT component to the platform window. diff -r 57d57810636c -r d8512cf14329 src/share/classes/sun/awt/peer/cacio/CacioDialogPeer.java --- a/src/share/classes/sun/awt/peer/cacio/CacioDialogPeer.java Fri Jan 28 14:10:37 2011 +0100 +++ b/src/share/classes/sun/awt/peer/cacio/CacioDialogPeer.java Mon Feb 07 13:34:01 2011 +0100 @@ -36,6 +36,8 @@ public CacioDialogPeer(Dialog awtC, PlatformWindowFactory pwf) { super(awtC, pwf); + setResizable(awtC.isResizable()); + setTitle(awtC.getTitle()); } public void setResizable(boolean resizable) { From proetel at aicas.de Fri Feb 18 03:48:33 2011 From: proetel at aicas.de (Ingo Proetel) Date: Fri, 18 Feb 2011 12:48:33 +0100 Subject: [PATCH] If a top level windows gets the focus it must be marked so in the CacioKeyboardFocusManagerPeer Message-ID: # HG changeset patch # User Ingo Proetel # Date 1298023290 -3600 # Node ID e606da242732304bc9311f223bea6646932039d8 # Parent 3183b179210686cde36e60f0a645920e2505a358 If a top level windows gets the focus it must be marked so in the CacioKeyboardFocusManagerPeer. An alternative would be to let native systems replace CacioKeyboardFocusManagerPeer with a specialized version that reflects the acutal state of the native system. diff -r 3183b1792106 -r e606da242732 src/share/classes/sun/awt/peer/cacio/CacioWindowPeer.java --- a/src/share/classes/sun/awt/peer/cacio/CacioWindowPeer.java Fri Feb 18 11:01:30 2011 +0100 +++ b/src/share/classes/sun/awt/peer/cacio/CacioWindowPeer.java Fri Feb 18 11:01:30 2011 +0100 @@ -207,6 +207,8 @@ case FocusEvent.FOCUS_GAINED: { + // Simulate what the native system thinks is the currently focused window. + CacioKeyboardFocusManagerPeer.getInstance().setCurrentFocusedWindow(w); WindowEvent we = new WindowEvent(w, WindowEvent.WINDOW_GAINED_FOCUS); super.handlePeerEvent(we); @@ -215,6 +217,8 @@ break; case FocusEvent.FOCUS_LOST: { + // Simulate what the native system thinks is the currently focused window. + CacioKeyboardFocusManagerPeer.getInstance().setCurrentFocusedWindow(null); super.handlePeerEvent(ev); WindowEvent we = new WindowEvent(w, WindowEvent.WINDOW_LOST_FOCUS); From neugens.limasoftware at gmail.com Fri Feb 18 10:21:52 2011 From: neugens.limasoftware at gmail.com (neugens.limasoftware at gmail.com) Date: Fri, 18 Feb 2011 18:21:52 +0000 Subject: hg: caciocavallo/ng: If a top level windows gets the focus it must be marked so in the CacioKeyboardFocusManagerPeer. Contributed by proetel@aicas.de. Message-ID: <20110218182153.0C91847871@hg.openjdk.java.net> Changeset: 1425d49d8072 Author: Mario Torre Date: 2011-02-18 19:21 +0100 URL: http://hg.openjdk.java.net/caciocavallo/ng/rev/1425d49d8072 If a top level windows gets the focus it must be marked so in the CacioKeyboardFocusManagerPeer. Contributed by proetel at aicas.de. ! src/share/classes/sun/awt/peer/cacio/CacioDialogPeer.java ! src/share/classes/sun/awt/peer/cacio/CacioWindowPeer.java