< prev index next >
src/java.desktop/share/classes/javax/swing/text/DefaultCaret.java
Print this page
*** 370,379 ****
--- 370,380 ----
/**
* Selects word based on the MouseEvent
*/
+ @SuppressWarnings("deprecation")
private void selectWord(MouseEvent e) {
if (selectedWordEvent != null
&& selectedWordEvent.getX() == e.getX()
&& selectedWordEvent.getY() == e.getY()) {
//we already done selection for this
*** 403,412 ****
--- 404,414 ----
* and a triple click the current line.
*
* @param e the mouse event
* @see MouseListener#mouseClicked
*/
+ @SuppressWarnings("deprecation")
public void mouseClicked(MouseEvent e) {
if (getComponent() == null) {
return;
}
*** 511,520 ****
--- 513,523 ----
}
/**
* Adjusts the caret location based on the MouseEvent.
*/
+ @SuppressWarnings("deprecation")
private void adjustCaret(MouseEvent e) {
if ((e.getModifiers() & ActionEvent.SHIFT_MASK) != 0 &&
getDot() != -1) {
moveCaret(e);
} else if (!e.isPopupTrigger()) {
< prev index next >