classpath-patches
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[cp-patches] Patch: adding to top-level containers


From: Anthony Balkissoon
Subject: [cp-patches] Patch: adding to top-level containers
Date: Thu, 16 Jun 2005 14:59:14 -0400

This patch allows directly adding to the top level containers JFrame,
JApplet, JInternalFrame, JWindow, and JDialog.  Before this, some were
allowing, some were not, and those that were adding were doing so
improperly so that keyboard and mouse input was not possible.

Adding directly is allowed in J2SE 5.0.

2005-06-13  Anthony Balkissoon  <address@hidden>

        * javax/swing/JApplet.java,
        javax/swing/JDialog.java,
        javax/swing/JFrame.java,
        javax/swing/JInternalFrame.java,
        javax/swing/JWindow.java: Added support for adding and setting
        layout managers directly for these top-level containers tocomply
        with J2SE 5.0.  Added private boolean init_stage_done.
Initialized rootPaneCheckingEnabled to false.
        (JDialog.dialogInit): Set init_stage_done to true.
        (JApplet.JApplet): Set init_stage_done to true.
        (JFrame.frameInit) : Set init_stage_done to true.
        (JInternalFrame.JInternalFrame): Set init_state_done to true.
        (JWindow.windowInit): Set init_stage_done to true.
        (addImpl): Added check for direct adds (J2SE 5.0) and directed
        them to getContentPane().add.
        (setLayout): Added check for direct calls to setLayout.
        (remove): Added check for direct calls to remove.


-Tony

Attachment: top-level.diff
Description: Text Data


reply via email to

[Prev in Thread] Current Thread [Next in Thread]