OSDN Git Service

* java/awt/List.java: Merged with Classpath.
authortromey <tromey@138bc75d-0d04-0410-961f-82ee72b054a4>
Sun, 5 Jan 2003 01:18:21 +0000 (01:18 +0000)
committertromey <tromey@138bc75d-0d04-0410-961f-82ee72b054a4>
Sun, 5 Jan 2003 01:18:21 +0000 (01:18 +0000)
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@60896 138bc75d-0d04-0410-961f-82ee72b054a4

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

index 221fa21..b3808e1 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 f2c6d07..07fea67 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 ();
 }
 
 /*************************************************************************/