JFoenix icon indicating copy to clipboard operation
JFoenix copied to clipboard

AwsomeIcon validation

Open Natreve opened this issue 10 years ago • 6 comments

validator.setAwsomeIcon(new Icon(AwesomeIcon.WARNING,"2em",";","error"));
Gives an error "The method setAwsomeIcon(Icon) is undefined for the type RequiredFieldValidator" Where can I get the class with with the methods?

Natreve avatar May 01 '16 22:05 Natreve

use the method validator.setIcon(new Icon(AwesomeIcon.WARNING,"2em",";","error")) instead.

the method setIcon takes Node object as a parameter.

jfoenixadmin avatar May 03 '16 06:05 jfoenixadmin

AwsomeIcon is another library?i can not find AwsomeIcon class in this repository

SuperChrisliu avatar Nov 01 '17 06:11 SuperChrisliu

i find that library...

<dependency>
    <groupId>de.jensd</groupId>
    <artifactId>fontawesomefx</artifactId>
    <version>8.9</version>
</dependency>

SuperChrisliu avatar Nov 01 '17 06:11 SuperChrisliu

        JFXToggleNode node = new JFXToggleNode();
        Text text = GlyphsDude.createIcon(FontAwesomeIcon.ANGLE_DOUBLE_LEFT, "10em");
        node.setGraphic(text);
        main.add(node, 0, 5);

SuperChrisliu avatar Nov 01 '17 07:11 SuperChrisliu

@xchz https://github.com/jfoenixadmin/JFoenix/blob/master/demo/build.gradle#L14

skmedix avatar Nov 01 '17 11:11 skmedix

@skmedix thank you, i have found that library. i just use maven, so i dont know how to read gradle config file...

SuperChrisliu avatar Nov 01 '17 12:11 SuperChrisliu