< prev index next >
modules/controls/src/main/java/com/sun/javafx/scene/control/behavior/PasswordFieldBehavior.java
Print this page
@@ -1,7 +1,7 @@
/*
- * Copyright (c) 2011, 2015, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2011, 2016, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License version 2 only, as
* published by the Free Software Foundation. Oracle designates this
@@ -24,11 +24,11 @@
*/
package com.sun.javafx.scene.control.behavior;
import javafx.scene.control.PasswordField;
-import static javafx.scene.control.skin.TextFieldSkin.TextPosInfo;
+import javafx.scene.text.HitInfo;
/**
* Password field behavior.
*/
public class PasswordFieldBehavior extends TextFieldBehavior {
@@ -46,10 +46,10 @@
protected void previousWord() { }
protected void nextWord() { }
protected void selectWord() {
selectAll();
}
- protected void mouseDoubleClick(TextPosInfo hit) {
+ protected void mouseDoubleClick(HitInfo hit) {
getNode().selectAll();
}
}
< prev index next >