< prev index next >
modules/controls/src/main/java/com/sun/javafx/scene/control/behavior/PasswordFieldBehavior.java
Print this page
*** 1,7 ****
/*
! * Copyright (c) 2011, 2015, 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
--- 1,7 ----
/*
! * 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,34 ****
*/
package com.sun.javafx.scene.control.behavior;
import javafx.scene.control.PasswordField;
! import static javafx.scene.control.skin.TextFieldSkin.TextPosInfo;
/**
* Password field behavior.
*/
public class PasswordFieldBehavior extends TextFieldBehavior {
--- 24,34 ----
*/
package com.sun.javafx.scene.control.behavior;
import javafx.scene.control.PasswordField;
! import javafx.scene.text.HitInfo;
/**
* Password field behavior.
*/
public class PasswordFieldBehavior extends TextFieldBehavior {
*** 46,55 ****
protected void previousWord() { }
protected void nextWord() { }
protected void selectWord() {
selectAll();
}
! protected void mouseDoubleClick(TextPosInfo hit) {
getNode().selectAll();
}
}
--- 46,55 ----
protected void previousWord() { }
protected void nextWord() { }
protected void selectWord() {
selectAll();
}
! protected void mouseDoubleClick(HitInfo hit) {
getNode().selectAll();
}
}
< prev index next >