Skip to content

JavaFX sample project to reorder list by dragging and dropping

Notifications You must be signed in to change notification settings

dassoop/JavaFXList_DragDropReorder

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

JavaFXList_DragDropReorder

General info

Example on reordering a list in JavaFX by dragging and dropping the list cells

Technologies

Project is created with:

  • Java Version: 11.0.11
  • JavaFX Version: 17.0.1
  • IDE: IntelliJ
  • Build: Maven

Changing Cell Content Types

  1. Change the type of the ListView on the main controller
  2. In the DraggableCell class change every instance of the cell String to your required type
  3. In the updateItem() method of the draggable cell you'll need to get the cellString from your new type. ex(file): (getIndex.getName());

About

JavaFX sample project to reorder list by dragging and dropping

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages