Commit 3128dd5c by Tom Tromey Committed by Tom Tromey

* java/awt/List.java: Merged with Classpath.

From-SVN: r60896
parent 7c288b73
2003-01-04 Tom Tromey <tromey@redhat.com>
* java/awt/List.java: Merged with Classpath.
2003-01-03 Mark Wielaard <mark@klomp.org> 2003-01-03 Mark Wielaard <mark@klomp.org>
* java/io/FileDescriptor.java (position): New private field. * java/io/FileDescriptor.java (position): New private field.
......
...@@ -113,6 +113,8 @@ private ActionListener action_listeners; ...@@ -113,6 +113,8 @@ private ActionListener action_listeners;
/** /**
* Initializes a new instance of <code>List</code> with no visible lines * Initializes a new instance of <code>List</code> with no visible lines
* and multi-select disabled. * and multi-select disabled.
*
* @exception HeadlessException If GraphicsEnvironment.isHeadless() is true.
*/ */
public public
List() List()
...@@ -127,6 +129,8 @@ List() ...@@ -127,6 +129,8 @@ List()
* number of visible lines and multi-select disabled. * number of visible lines and multi-select disabled.
* *
* @param lines The number of visible lines in the list. * @param lines The number of visible lines in the list.
*
* @exception HeadlessException If GraphicsEnvironment.isHeadless() is true.
*/ */
public public
List(int rows) List(int rows)
...@@ -143,12 +147,17 @@ List(int rows) ...@@ -143,12 +147,17 @@ List(int rows)
* @param lines The number of visible lines in the list. * @param lines The number of visible lines in the list.
* @param multipleMode <code>true</code> if multiple lines can be selected * @param multipleMode <code>true</code> if multiple lines can be selected
* simultaneously, <code>false</code> otherwise. * simultaneously, <code>false</code> otherwise.
*
* @exception HeadlessException If GraphicsEnvironment.isHeadless() is true.
*/ */
public public
List(int rows, boolean multipleMode) List(int rows, boolean multipleMode)
{ {
this.rows = rows; this.rows = rows;
this.multipleMode = multipleMode; this.multipleMode = multipleMode;
if (GraphicsEnvironment.isHeadless())
throw new HeadlessException ();
} }
/*************************************************************************/ /*************************************************************************/
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment