mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-05-01 02:38:59 +07:00
18 lines
377 B
Java
18 lines
377 B
Java
import javafx.beans.property.SimpleStringProperty;
|
|
import javafx.scene.Node;
|
|
|
|
class StringDemo {
|
|
SimpleStringProperty s = new SimpleStringProperty(this, "s", "Something");
|
|
|
|
StringDemo(String s) {
|
|
this.s.set(s);
|
|
}
|
|
|
|
public void compound(String t) {
|
|
s.set(s.get() + (t));
|
|
}
|
|
|
|
public String toString() {
|
|
return "s=" + s.get();
|
|
}
|
|
} |