Метод изменения формата столбца:
`< /p>
Код: Выделить всё
public void Formato_fecha_y_hora(){
Locale locale = new Locale("es", "ES");
DateTimeFormatter formatter = DateTimeFormatter.ofPattern("dd/MM/yyyy E").withLocale(locale);
Col_FEentrega.setCellFactory(tc -> new TableCell() {
@Override
protected void updateItem(LocalDate date, boolean empty) {
super.updateItem(date, empty);
if (empty) {
setText(null);
} else {
setText(formatter.format(date));
}
}
});
DateTimeFormatter formato_hora = DateTimeFormatter.ofPattern("h:mm a");
Col_Hora_entrega.setCellFactory(tc -> new TableCell() {
@Override
protected void updateItem(LocalTime Time, boolean empty) {
super.updateItem(Time, empty);
if (empty) {
setText(null);
} else {
setText(formato_hora.format(Time));
}
}
});
}
< /code>
, чтобы установщик использовал следующий jpackage: < /p>
jpackage --type exe --input . --dest . --main-jar .\Dulceria.jar --main-class com.example.dulceria.HelloApplication --module-path "D:\Program Files\Java\javafx-jmods-18" --add-modules javafx.controls,javafx.fxml,java.sql,java.sql.rowset --win-shortcut --win-menuЯ получаю следующую форму в.>
Подробнее здесь: https://stackoverflow.com/questions/747 ... exe-javafx