Can you point me towards some good examples of the Decorator Pattern with Guis.

My understanding is that I can create an empty JFrame and decorate it with e.g and Edit Panel, Create Panel etc

im not sure if Im getting confused as whether the state pattern would fit this idea better or not?

thankyou