diff options
author | Tom Tromey <tromey@cygnus.com> | 2000-07-31 02:03:51 +0000 |
---|---|---|
committer | Tom Tromey <tromey@gcc.gnu.org> | 2000-07-31 02:03:51 +0000 |
commit | e0a339f785fd6673790ffe95448fa4375e4cc77f (patch) | |
tree | e4242f7fec5fd46deb2e127e632eaf9fc1aceb50 /libjava/java/awt/Scrollbar.java | |
parent | 911a71a72912cfa7bc2d762f35e76e2f58e3097c (diff) | |
download | gcc-e0a339f785fd6673790ffe95448fa4375e4cc77f.zip gcc-e0a339f785fd6673790ffe95448fa4375e4cc77f.tar.gz gcc-e0a339f785fd6673790ffe95448fa4375e4cc77f.tar.bz2 |
BorderLayout.java (BorderLayout()): New constructor.
* java/awt/BorderLayout.java (BorderLayout()): New constructor.
* java/awt/Frame.java (Frame): Pass `null' to Window constructor.
* java/awt/Window.java (addNotify): Wrote.
(addWindowListener): Wrote.
(getLocale): Wrote.
(getWarningString): Wrote.
(processEvent): Wrote.
(processWindowEvent): Wrote.
(removeWindowListener): Wrote.
(show): Call validate(), setVisible().
(toBack): Wrote.
(toFront): Wrote.
* java/awt/Toolkit.java (createWindow): Declare.
* java/awt/Frame.java (addNotify): Use getToolkit to find
toolkit.
* java/awt/Component.java (invalidate): Wrote.
(isValid): Wrote.
(getToolkit): Wrote.
* java/awt/Container.java (addContainerListener): Removed
unnecessary cast.
(removeContainerListener): Likewise.
(addImpl): Wrote.
(add(Component)): Use it.
(add(String,Component)): Likewise.
(add(Component,int)): Likewise.
(add(Component,Object)): Likewise.
(add(Component,Object,int)): Likewise.
(doLayout): Wrote.
(getAlignmentX): Wrote.
(getAlignmentY): Wrote.
(getComponentAt): Wrote.
(getMaximumSize): Wrote.
(invalidate): Wrote.
(list(PrintStream,int)): Wrote.
(list(PrintWriter,int)): Wrote.
(getMinimumSize): Wrote.
(getPreferredSize): Wrote.
(printComponents): Wrote.
(processContainerEvent): Look at containerListener, not
componentListener.
(remove): Added event processing and peer destruction.
(removeAll): Use remove.
(removeNotify): Wrote.
(validate): Wrote.
(validateTree): Wrote.
* java/awt/Scrollbar.java (addNotify): Do nothing if peer exists.
* java/awt/Label.java (addNotify): Do nothing if peer exists.
* java/awt/Container.java (addNotify): Don't create Container
peer.
* java/awt/Button.java (addNotify): Do nothing if peer exists.
From-SVN: r35361
Diffstat (limited to 'libjava/java/awt/Scrollbar.java')
-rw-r--r-- | libjava/java/awt/Scrollbar.java | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/libjava/java/awt/Scrollbar.java b/libjava/java/awt/Scrollbar.java index 5406c0c..afe3aba 100644 --- a/libjava/java/awt/Scrollbar.java +++ b/libjava/java/awt/Scrollbar.java @@ -53,7 +53,8 @@ public class Scrollbar extends Component implements Adjustable public void addNotify () { - peer = (ComponentPeer) getToolkit ().createScrollbar (this); + if (peer == null) + peer = (ComponentPeer) getToolkit ().createScrollbar (this); } public int getOrientation () |