Moved StyledDocument et al into swing.