Your source states that the building programme by Christian IV brought DK to the brinck of bankrupcy.
That I think is a somewhat hasty conclusion.
Christian IV did indeed build a lot of the magnificent buildings we see today in primarily Copenhagen but Denmark at that time was a wealthy country, simply because we had manged to stay clear from the Thirty Years War and the other wars in Central Europe at the time.
Until that is, we got involved in 1625. That led to the first sacking of Jutland, Holstein and Schleswig.
But the rest of the country was practically unaffected, even though the taxation was high. The casualty rate was limited as well, because the army consited of predominantly mercenaries. But mercenaries costs a fortune!
The Swedish model of general conscription was in its infancy, so the drain on manpower in wars was limited, which again meant that it was easier to recover economically.
Contrary to popular belief the Thirty Years War was not one big atrocity, with constant massacres and sacking of cities. The sacking of Magdeburg later on was actually something of an exception, which it is why it to this day is remembered with horror.
The vast majority of systematic atrocities happened later on, simply because the armies increasingly had to live off the land but also as a means to destroy the economic basis for your enemies. - And that economic impact is, I think, the main reason why the war ended with something as novel as an international summit ending up in a negotiated peace.
The real killer was desease. However estimates sets the number of deaths during the Thirty Years War at eight million in what is modern Germany. That's a lot! - Except, they occured over a thirty year period and the mortality rate was high anyway. So the number of people who died as a direct consequence of the war was actually fairly limited.
Back to Denmark. It was the First Skanska War that brought economic disaster to Denmark and that was initiated by Frederik III. Culminating in the storm on Copenhagen in 1659.
Nevertheless just a couple decades later DK had recovered enough to gather, equip and train a vast army, which narrowly won militarily over Sweden. Politically DK lost that war, But that's another story.
Even after the end of the Great Nordic War in 1720, DK managed to recover quite soon and became, as a country, pretty wealthy during the rest of the 1700's.
Sweden however was still down on it's knees after having its male population decimated and economy shattered to pieces. The Swedish nobillity had amassed a lot of wealth during the wars, little of which trickled down to the rest of the population.
In DK it was primarily merchants who sat on the money, but at least they created jobs and opportunities.
- Oh dear, it happened again! Half a novel, because of one sentence.
The building programmes initiated by Christian IV in particular were indeed extensive, but they were also a necessity.
Denmark was during the 1500's and certainly by the year 1600 emerging as a modern European nation. But there wasn't any real stock exchange, there wasn't an official observatory, there wasn't a modern naval yard and many "palaces" were basically run down medieval castles - until Christian IV came along.
Sorry if I'm moving in on your topic, crown, but this is
an interesting subject, eh?