summaryrefslogtreecommitdiffstats
path: root/doc/NEWT.txt
blob: c97d90e30a4bf70ff57e6bc6c2e7d9b036cae772 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
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.