You cannot expect a 1:1 mapping of the swing classes to HTML: You can however manipulate the classes and then (re-)render them as HTML. To Do so call getHTML() after bringing the Objects into the desired state.
getHTML()