Jfoenix: JFXHamburger

Created on 2 Feb 2017  路  1Comment  路  Source: sshahine/JFoenix

hi, i following jFXHamburger demo, but i've got error when tried to use MouseEvent,

public void initialize(URL url, ResourceBundle rb) {
hamburger = new JFXHamburger();
HamburgerSlideCloseTransition transition = new HamburgerSlideCloseTransition(hamburger);
transition.setRate(-1);
hamburger.addEventHandler(MouseEvent.MOUSE_PRESSED, (e)->{
transition.setRate(transition.getRate()* - 1);
transition.play();
});
}

_hamburger.addEventHandler(MouseEvent.MOUSE_PRESSED, (e)->{
required: EventType,EventHandler
found: int,(e)->{ tra...; }
reason: cannot infer type-variable(s) T
(argument mismatch; int cannot be converted to EventType)
where T is a type-variable:
T extends Event declared in method addEventHandler(EventType,EventHandler)
1 error_

plese help .....

Thank's Admin ....

Most helpful comment

Hello, I think you are importing the wrong event class AWT event instead of JavaFX event.
I'll close this issue as it's not related to JFoenix development.

Regards,

>All comments

Hello, I think you are importing the wrong event class AWT event instead of JavaFX event.
I'll close this issue as it's not related to JFoenix development.

Regards,

Was this page helpful?
0 / 5 - 0 ratings

Related issues

Natreve picture Natreve  路  4Comments

rickyzhangca picture rickyzhangca  路  4Comments

SkaaRJik picture SkaaRJik  路  4Comments

imgx64 picture imgx64  路  5Comments

evillatoro picture evillatoro  路  3Comments