to further cloud the waters....
classes like HTMLEditorKit define actions that can be applied to a JEditorPane containing html. They neither belong to the JEditorPane nor to an html document, but the two combined. They are written as static classes which get hold of the components from the ActionEvent that has been passed in....
e.g.