summaryrefslogtreecommitdiff
path: root/libjava/java/awt/List.java
diff options
context:
space:
mode:
authortromey <tromey@138bc75d-0d04-0410-961f-82ee72b054a4>2001-04-22 03:05:39 +0000
committertromey <tromey@138bc75d-0d04-0410-961f-82ee72b054a4>2001-04-22 03:05:39 +0000
commit708062224a502c41561e122dcde5accf23f77ad9 (patch)
tree8cf49adef6ef831f4363f6d0395a5c7770fef325 /libjava/java/awt/List.java
parent00dddcf2e987bc18abe9160483c2ca7f2c7bcb2b (diff)
downloadgcc-708062224a502c41561e122dcde5accf23f77ad9.tar.gz
* Makefile.in: Rebuilt.
* Makefile.am (awt_java_source_files): Added Line2D.java. * java/awt/geom/Line2D.java: Wrote. * java/awt/Menu.java (addNotify): Wrote. * java/awt/PopupMenu.java (addNotify): Implemented. (show): Likewise. * java/awt/Scrollbar.java (addNotify): Call super.addNotify. * java/awt/List.java (addNotify): Call super.addNotify. * java/awt/Label.java (addNotify): Call super.addNotify. * java/awt/FileDialog.java (addNotify): Call super.addNotify. * java/awt/Dialog.java (addNotify): Call super.addNotify. * java/awt/Choice.java (addNotify): Call super.addNotify. * java/awt/CheckboxMenuItem.java (addNotify): Call super.addNotify. * java/awt/Checkbox.java (addNotify): Call super.addNotify. * java/awt/List.java (replaceItem): Notify peer. * java/awt/geom/Rectangle2D.java (Float.setRect(float,float,float,float)): New method. * java/awt/event/ContainerEvent.java (getContainer): Now returns Container. * java/awt/RenderingHints.java (Key): Class now public. * java/awt/Rectangle.java (Rectangle): Now implements Serializable. (getPathIterator): Removed. * java/awt/GraphicsConfiguration.java (GraphicsConfiguration): New constructor. * java/awt/FileDialog.java: Wrote. * java/awt/EventQueue.java (isDispatchThread): Now public. (invokeLater): Likewise. * java/awt/Component.java (setCursor): Update peer. (getFontMetrics): Use peer. * java/awt/ComponentOrientation.java (ComponentOrientation): Class now final. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@41489 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libjava/java/awt/List.java')
-rw-r--r--libjava/java/awt/List.java8
1 files changed, 7 insertions, 1 deletions
diff --git a/libjava/java/awt/List.java b/libjava/java/awt/List.java
index c0ac3023ced..f3d5e4becfa 100644
--- a/libjava/java/awt/List.java
+++ b/libjava/java/awt/List.java
@@ -52,6 +52,7 @@ public class List extends Component implements ItemSelectable
{
if (peer != null)
peer = getToolkit ().createList (this);
+ super.addNotify ();
}
public int getItemCount ()
@@ -107,7 +108,12 @@ public class List extends Component implements ItemSelectable
public void replaceItem (String item, int index)
{
items.setElementAt (item, index);
- // FIXME: notify peer
+ if (peer != null)
+ {
+ ListPeer l = (ListPeer) peer;
+ l.delItems (index, index);
+ l.add (item, index);
+ }
}
public void removeAll ()