Component.java: Add treeLock object.

2000-07-30  Anthony Green  <green@redhat.com>

        * java/awt/Component.java: Add treeLock object.
        (getTreeLock): Implement.
        (isShowing): Implement.

From-SVN: r35362
This commit is contained in:
Anthony Green 2000-07-31 02:33:12 +00:00 committed by Anthony Green
parent e0a339f785
commit b708c42c7a
2 changed files with 16 additions and 4 deletions

View File

@ -1,3 +1,9 @@
2000-07-30 Anthony Green <green@redhat.com>
* java/awt/Component.java: Add treeLock object.
(getTreeLock): Implement.
(isShowing): Implement.
2000-07-30 Tom Tromey <tromey@cygnus.com>
* java/awt/BorderLayout.java (BorderLayout()): New constructor.

View File

@ -71,6 +71,8 @@ public abstract class Component implements ImageObserver, MenuContainer,
transient Container parent;
transient java.awt.peer.ComponentPeer peer;
transient Object treeLock;
transient ComponentListener componentListener;
transient FocusListener focusListener;
transient KeyListener keyListener;
@ -140,8 +142,7 @@ public abstract class Component implements ImageObserver, MenuContainer,
public final Object getTreeLock()
{
// FIXME
return null;
return treeLock;
}
public Toolkit getToolkit()
@ -172,8 +173,13 @@ public abstract class Component implements ImageObserver, MenuContainer,
public boolean isShowing()
{
// FIXME
return false;
if (! visible)
return false;
if (parent != null)
return (parent.isShowing());
return true;
}
public boolean isEnabled()