Skip to content

Instantly share code, notes, and snippets.

View cyberterror's full-sized avatar

Cyber Terror cyberterror

View GitHub Profile
@james-d
james-d / Person.java
Last active July 18, 2024 03:40
Example of attaching context-specific context menus to a TableView. Menus are attached for the TableView context, TableRow context, and TableCell context.
import javafx.beans.property.SimpleStringProperty;
import javafx.beans.property.StringProperty;
public class Person {
private final StringProperty firstName ;
private final StringProperty lastName ;
private final StringProperty email ;
public Person(String firstName, String lastName, String email) {
this.firstName = new SimpleStringProperty(this, "firstName", firstName);