Skip to content

Commit

Permalink
HeadlessException doc
Browse files Browse the repository at this point in the history
  • Loading branch information
mrserb committed Jan 8, 2024
1 parent 78cfb4d commit b8174df
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions src/java.desktop/share/classes/java/awt/dnd/DropTarget.java
Expand Up @@ -87,8 +87,8 @@ public class DropTarget implements DropTargetListener, Serializable {
* @param act Is the {@code DropTarget} accepting drops
* @param fm The {@code FlavorMap} to use, or null for the default
* {@code FlavorMap}
* @throws HeadlessException if GraphicsEnvironment.isHeadless() returns
* true
* @throws HeadlessException if {@code GraphicsEnvironment.isHeadless()}
* returns {@code true}
* @see java.awt.GraphicsEnvironment#isHeadless
*/
public DropTarget(Component c, int ops, DropTargetListener dtl,
Expand Down Expand Up @@ -135,8 +135,8 @@ public DropTarget(Component c, int ops, DropTargetListener dtl,
* @param ops The default acceptable actions for this {@code DropTarget}
* @param dtl The {@code DropTargetListener} for this {@code DropTarget}
* @param act Is the {@code DropTarget} accepting drops
* @throws HeadlessException if GraphicsEnvironment.isHeadless() returns
* true
* @throws HeadlessException if {@code GraphicsEnvironment.isHeadless()}
* returns {@code true}
* @see java.awt.GraphicsEnvironment#isHeadless
*/
public DropTarget(Component c, int ops, DropTargetListener dtl,
Expand All @@ -149,8 +149,8 @@ public DropTarget(Component c, int ops, DropTargetListener dtl,
/**
* Creates a {@code DropTarget}.
*
* @throws HeadlessException if GraphicsEnvironment.isHeadless() returns
* true
* @throws HeadlessException if {@code GraphicsEnvironment.isHeadless()}
* returns {@code true}
* @see java.awt.GraphicsEnvironment#isHeadless
*/
public DropTarget() throws HeadlessException {
Expand All @@ -167,8 +167,8 @@ public DropTarget() throws HeadlessException {
* @param c The {@code Component} with which this {@code DropTarget} is
* associated
* @param dtl The {@code DropTargetListener} for this {@code DropTarget}
* @throws HeadlessException if GraphicsEnvironment.isHeadless() returns
* true
* @throws HeadlessException if {@code GraphicsEnvironment.isHeadless()}
* returns {@code true}
* @see java.awt.GraphicsEnvironment#isHeadless
*/
public DropTarget(Component c, DropTargetListener dtl)
Expand All @@ -188,8 +188,8 @@ public DropTarget(Component c, DropTargetListener dtl)
* associated
* @param ops The default acceptable actions for this {@code DropTarget}
* @param dtl The {@code DropTargetListener} for this {@code DropTarget}
* @throws HeadlessException if GraphicsEnvironment.isHeadless() returns
* true
* @throws HeadlessException if {@code GraphicsEnvironment.isHeadless()}
* returns {@code true}
* @see java.awt.GraphicsEnvironment#isHeadless
*/
public DropTarget(Component c, int ops, DropTargetListener dtl)
Expand Down

0 comments on commit b8174df

Please sign in to comment.