You can swap a player anytime before the scheduled game's start time. Once that has been breached, you have committed to the salary and have exhausted that slot.
To swap your players, enter the contest and lineup you want to edit.
Use the X or minus to drop a player and select a new one from the player list.