From 8df12ca151dfc577c90b485d4ebfe491b88e55aa Mon Sep 17 00:00:00 2001 From: Sven Gothel Date: Sun, 12 Dec 2010 07:55:13 +0100 Subject: Adding misc NEWT docs/notes --- doc/NEWT.txt | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 doc/NEWT.txt (limited to 'doc') diff --git a/doc/NEWT.txt b/doc/NEWT.txt new file mode 100644 index 000000000..c97d90e30 --- /dev/null +++ b/doc/NEWT.txt @@ -0,0 +1,30 @@ +NEWT / Swing/AWT mixed usage: +================================== + +1) Shut down menus when NEWT window gains focus: ++++ + glWindow.addWindowListener(new WindowAdapter() { + public void windowGainedFocus(WindowEvent arg0) { + MenuSelectionManager.defaultManager().clearSelectedPath(); + } + }); ++++ + +2) Mixing hw/lw components + +http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6776743 +http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6788954 +http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6797587 + +Bug 6788954: + If an existing application embedds a heavyweight component in a frame, + and at the same time installs a custom glass pane, + the heavyweight component will disappear. + This regression is not very serious since we never supported mixing of hw and lw components + in general. The developer will have two options to resolve the problem: + 1. By modifying the software to tag the glass pane properly, or + 2. To suggest users to use the sun.awt.disableMixing system property + to disable the hw/lw mixing code at all. + + + -- cgit v1.2.3