Shape can have two colors: one for the interior (setFill method) and one for the border (setStroke). Color in JavaFX is handled by the Paint API, which is worth a deeper look: