In a wide heavy saut? pan over medium heat, melt the butter. Add the onions, brown sugar, caraway seeds, salt, and a few grinds of pepper. Saut? the mixture, stirring occasionally, for 5 to 7 minutes, until softened. Add the water, vinegar, cabbage, and apple. Raise the heat and bring to a boil. Cover, reduce the heat to low, and braise for 25 to 30 minutes. Uncover and cook over high heat for a few minutes until the juices have reduced. Season the dish to taste with salt and pepper.