|
1 | 1 | /* |
2 | | - * Copyright (c) 1997, 2014, Oracle and/or its affiliates. All rights reserved. |
| 2 | + * Copyright (c) 1997, 2025, Oracle and/or its affiliates. All rights reserved. |
3 | 3 | * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
4 | 4 | * |
5 | 5 | * This code is free software; you can redistribute it and/or modify it |
|
26 | 26 | package javax.swing.event; |
27 | 27 |
|
28 | 28 | import java.util.EventObject; |
29 | | -import javax.swing.*; |
| 29 | +import javax.swing.ListSelectionModel; |
30 | 30 |
|
31 | 31 |
|
32 | 32 | /** |
33 | | - * An event that characterizes a change in selection. The change is limited to a |
| 33 | + * An event that characterizes a change in selection. The change is limited to |
34 | 34 | * a single inclusive interval. The selection of at least one index within the |
35 | 35 | * range will have changed. A decent {@code ListSelectionModel} implementation |
36 | 36 | * will keep the range as small as possible. {@code ListSelectionListeners} will |
@@ -64,8 +64,8 @@ public class ListSelectionEvent extends EventObject |
64 | 64 | * have changed. |
65 | 65 | * |
66 | 66 | * @param source the {@code Object} on which the event initially occurred |
67 | | - * @param firstIndex the first index in the range, <= lastIndex |
68 | | - * @param lastIndex the last index in the range, >= firstIndex |
| 67 | + * @param firstIndex the first index in the range, <= {@code lastIndex} |
| 68 | + * @param lastIndex the last index in the range, >= {@code firstIndex} |
69 | 69 | * @param isAdjusting whether or not this is one in a series of |
70 | 70 | * multiple events, where changes are still being made |
71 | 71 | */ |
@@ -111,7 +111,7 @@ public ListSelectionEvent(Object source, int firstIndex, int lastIndex, |
111 | 111 | * Returns a {@code String} that displays and identifies this |
112 | 112 | * object's properties. |
113 | 113 | * |
114 | | - * @return a String representation of this object |
| 114 | + * @return a string representation of this object |
115 | 115 | */ |
116 | 116 | public String toString() { |
117 | 117 | String properties = |
|
0 commit comments