Re: [8] Review Request for JDK-8024170, [SwingNode] Implement cursor change

2013-09-12 Thread Anton Tarasov
Hi Petr, Great! At least, you no longer need to kick the awt cursor machinery =) Thanks! Anton. On 9/12/2013 4:58 PM, Petr Pchelko wrote: Hello, AWT Team. Please disregard the previous version of the fix. We've decided to change the approach completely. The new version of the JDK part is ava

Re: [8] Review Request for 8024122: need test to cover JDK-7146572

2013-09-12 Thread alexander stepanov
Hello Anthony, > Does this test have to be an applet test? It is strange but I wasn't able to start "main/manual=yesno" test using current jtreg; the message was: "Test.java Error. Parse Exception: Arguments to `manual' option not supported: yesno" It is oddly because the repository contain

Re: [8] Review request for 8007219 [macosx] Frame size reverts meaning of maximized attribute if frame size close to display

2013-09-12 Thread Sergey Bylokhov
Hi, Alexander. Looks like I found another issue in the fix. PlatformWindow.initialize now uses target.getBounds(). But these bounds are not verifyed against correct values(see LWWP.setBound()) We should rearrange our initialisation code. Hi, Alexander. The fix looks goo

[8] Request for review: 8005255 [macosx] Cleanup warnings in sun.lwawt

2013-09-12 Thread Sergey Bylokhov
Hello, Please review the fix for jdk 8. - Documentation updated - Component.getPeer() replaced with AWTAccessor. - Generics code updated. - For some methods access was changed to weaker - SuppressWarnings were added when needed. Plus some small general cleanup. Bug: http://bugs.sun.com/bu

hg: jdk8/awt/jdk: 8024395: Improve fix for line break calculations

2013-09-12 Thread mikhail . cherkasov
Changeset: 3213c388740a Author:dmarkov Date: 2013-09-12 18:44 +0400 URL: http://hg.openjdk.java.net/jdk8/awt/jdk/rev/3213c388740a 8024395: Improve fix for line break calculations Reviewed-by: alexp, alexsch ! src/share/classes/javax/swing/text/FlowView.java ! src/share/classes/java

hg: jdk8/awt/jdk: 7124537: [macosx] Menu shortcuts for all menu items should be disabled if a menu itself is disabled

2013-09-12 Thread sergey . bylokhov
Changeset: 6321e4429a38 Author:serb Date: 2013-09-12 18:21 +0400 URL: http://hg.openjdk.java.net/jdk8/awt/jdk/rev/6321e4429a38 7124537: [macosx] Menu shortcuts for all menu items should be disabled if a menu itself is disabled Reviewed-by: anthony, leonidr ! src/macosx/classes/sun

Re: [8] Request for review: 7124537 [macosx] Menu shortcuts for all menu items should be disabled if a menu itself is disabled

2013-09-12 Thread Anthony Petrov
Looks fine. -- best regards, Anthony On 09/11/13 19:39, Sergey Bylokhov wrote: Hello, Please review direct forward port from jdk7u to jdk 8. Bug: http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=7124537 Webrev can be found at: http://cr.openjdk.java.net/~serb/7124537/webrev.00/

Re: [8] Review request for 8007219 [macosx] Frame size reverts meaning of maximized attribute if frame size close to display

2013-09-12 Thread Sergey Bylokhov
Hi, Alexander. The fix looks good. On 12.09.2013 17:14, Alexander Scherbatiy wrote: Could you review the updated fix: http://cr.openjdk.java.net/~alexsch/8007219/webrev.01/ The problem was that NSWindow is created with zero bounds and then actual bounds are set. In this case NSWindo

Re: [8] Review Request for 8024122: need test to cover JDK-7146572

2013-09-12 Thread Anthony Petrov
Hi Alexander, Does this test have to be an applet test? Can it be a main test instead to eliminate the unnecessary .html file? Also, you might want to list @bug 8024122 in the test jtreg tags as well. -- best regards, Anthony On 09/09/13 15:50, alexander stepanov wrote: Hello, Could you pl

Re: [8] Review request for 8007219 [macosx] Frame size reverts meaning of maximized attribute if frame size close to display

2013-09-12 Thread Alexander Scherbatiy
Could you review the updated fix: http://cr.openjdk.java.net/~alexsch/8007219/webrev.01/ The problem was that NSWindow is created with zero bounds and then actual bounds are set. In this case NSWindow treats big bounds as zoomed state and next zoom move the window to initial zero bou

Re: [8] Review Request for JDK-8024170, [SwingNode] Implement cursor change

2013-09-12 Thread Anthony Petrov
Hi Petr, The fix looks fine to me. Thank you. A tiny nit at src/share/classes/sun/swing/SwingAccessor.java: 79 * Updates the JLightweight frame that it needs to update a cursor s/Updates/Notifies/ . Also, please add a closing dot in the sentence to avoid any potential javadoc warn

Re: [8] Review Request for JDK-8024170, [SwingNode] Implement cursor change

2013-09-12 Thread Petr Pchelko
Hello, AWT Team. Please disregard the previous version of the fix. We've decided to change the approach completely. The new version of the JDK part is available at: http://cr.openjdk.java.net/~pchelko/8024170/webrev.03/ The SwingAccessor is used because Component.updateCursorImmediately is a fin

Re: [8] Review request for 7129133: [macosx] Accelerators are displayed as Meta instead of the Command symbol

2013-09-12 Thread Anthony Petrov
Hi Leonid, Why not put the OS X specific logic into the LWCToolkit and set the Toolkit.platformResources field via the AWTAccessor? This would help avoid checking for a specific platform in our shared code. -- best regards, Anthony On 09/12/13 15:30, Leonid Romanov wrote: Yes, I'll use OSIn

hg: jdk8/awt/jdk: 7064312: Cleanup: avoid using unsafe string function

2013-09-12 Thread oleg . pekhovskiy
Changeset: def1fa9854f7 Author:bagiras Date: 2013-09-12 15:50 +0400 URL: http://hg.openjdk.java.net/jdk8/awt/jdk/rev/def1fa9854f7 7064312: Cleanup: avoid using unsafe string function Reviewed-by: serb, pchelko ! src/windows/native/sun/windows/awt_FileDialog.cpp ! src/windows/native

Re: [8] Review request for 8008728 [macosx] Swing. JDialog. Modal dialog goes to background

2013-09-12 Thread Sergey Bylokhov
Hi, Alexander. The fix looks good. Can you add additional comments about the new code in the AWTWindow.m. It should describe that the native system can bring up the NSWindow to the top even if the window is not main, and we should do some things manually. On 05.09.2013 18:59, Alexander Scherb

Re: [8] Review request for 7129133: [macosx] Accelerators are displayed as Meta instead of the Command symbol

2013-09-12 Thread Leonid Romanov
Yes, I'll use OSInfo instead. As for property file name, could you suggest a better one? On 12.09.2013, at 15:26, Sergey Bylokhov wrote: > Hi, Leonid. > i think that you can try to reuse OSInfo class. > Also I doubt about property file name. > > On 12.09.2013 9:09, Leonid Romanov wrote: >> Hi

Re: Fwd: [8] Review request for 7129133: [macosx] Accelerators are displayed as Meta instead of the Command symbol

2013-09-12 Thread Sergey Bylokhov
Hi, Leonid. i think that you can try to reuse OSInfo class. Also I doubt about property file name. On 12.09.2013 9:09, Leonid Romanov wrote: Hi guys, Could you review it, please? Original Message Subject: [8] Review request for 7129133: [macosx] Accelerators are displayed as

hg: jdk8/awt/jdk: 8003965: Toolkit.beep() documentation is ambiguous

2013-09-12 Thread oleg . pekhovskiy
Changeset: 04fbd34fda7b Author:bagiras Date: 2013-09-12 14:56 +0400 URL: http://hg.openjdk.java.net/jdk8/awt/jdk/rev/04fbd34fda7b 8003965: Toolkit.beep() documentation is ambiguous Reviewed-by: anthony ! src/share/classes/java/awt/Toolkit.java