pasteboard update with CEmbeddedFrame

Abhinay Reddyreddy Abhinay.Reddyreddy at mathworks.com
Thu Mar 21 11:41:21 PDT 2013


We have seen a similar problem in our software even with JDK 6.

we show native windows in a Java application.
Anything copied in the native window will not paste into a java window,
because switching windows within the app does not trigger the notification.

It would be awesome if there is a workaround for this issue.

Thanks,
Abhinay.

On 3/21/13 12:54 PM, "mikhail cherkasov" <mikhail.cherkasov at oracle.com>
wrote:

>Hi all,
>
>Applets doesn't see pasteboard  updates at all, because AWT checks
>pasteboard for new data only when receives
>NSApplicationDidBecomeActiveNotification notification, but if we have no
>windows, system won't deliver
>this message( actually it won't deliver any NSApplication*Notification
>notification ).
>So a applet that doesn't create windows and just adds content to applet
>ContentPane won't able get
>data from pasteboard.
>
>How does jdk6 handle this? Can someone advise how to fix this?
>
>I've attached test.
>Steps to reproduce:
>1. Unpack attached zip file.
>2. copy signed jar, D.jar and Test.html to docs directory of web server.
>3. Launch http://localhost/test.html
>4. In the applet copy all the text into the clipboard using
>Cmd+c
>5. Copy some text from any other application.
>6.  paste text to applet - awt will pastes the text that was copied
>previosly form applet and will ignore
>data form step 5.
>
>Thanks,
>Mikhail.



More information about the macosx-port-dev mailing list