* java/awt/List.java: Merged with Classpath.
authorTom Tromey <tromey@redhat.com>
Sun, 5 Jan 2003 01:18:21 +0000 (01:18 +0000)
committerTom Tromey <tromey@gcc.gnu.org>
Sun, 5 Jan 2003 01:18:21 +0000 (01:18 +0000)
From-SVN: r60896

libjava/ChangeLog
libjava/java/awt/List.java

index 221fa2100e34bc7b391c83431a2935b5d300d4f6..b3808e18b78d9f1069afd58f259e90224c06ee25 100644 (file)
@@ -1,3 +1,7 @@
+2003-01-04  Tom Tromey  <tromey@redhat.com>
+
+       * java/awt/List.java: Merged with Classpath.
+
 2003-01-03  Mark Wielaard  <mark@klomp.org>
 
        * java/io/FileDescriptor.java (position): New private field.
index f2c6d078832f41f7ffcb8947368d72b4666b95be..07fea67b022cb65d58e7cf9af40ebca1a5f57554 100644 (file)
@@ -113,6 +113,8 @@ private ActionListener action_listeners;
 /**
   * Initializes a new instance of <code>List</code> with no visible lines
   * and multi-select disabled.
+  *
+  * @exception HeadlessException If GraphicsEnvironment.isHeadless() is true.
   */
 public
 List()
@@ -127,6 +129,8 @@ List()
   * number of visible lines and multi-select disabled.
   *
   * @param lines The number of visible lines in the list.
+  *
+  * @exception HeadlessException If GraphicsEnvironment.isHeadless() is true.
   */
 public
 List(int rows)
@@ -143,12 +147,17 @@ List(int rows)
   * @param lines The number of visible lines in the list.
   * @param multipleMode <code>true</code> if multiple lines can be selected
   * simultaneously, <code>false</code> otherwise.
+  *
+  * @exception HeadlessException If GraphicsEnvironment.isHeadless() is true.
   */
 public 
 List(int rows, boolean multipleMode)
 {
   this.rows = rows;
   this.multipleMode = multipleMode;
+
+  if (GraphicsEnvironment.isHeadless())
+    throw new HeadlessException ();
 }
 
 /*************************************************************************/