It followed an incident in the town's Barrie Avenue on Tuesday which left a 33-year-old man seriously injured.
Morgan McMurtrie, 18, of Dumfries, and two 16-year-olds, who cannot be named for legal reasons, appeared separately on charges of assault to severe injury, danger of life and attempted murder.
No plea was made in each case and all three were released on bail.
They will make a further appearance at a later date.
Three teenagers have appeared in court in Dumfries charged with attempted murder.