Categories: MSDN / DotNet / Java / Scripts / Linux / PHP Ask - La ask - La Answer

Set the Http Request Method of a JEditor/JTextPane

How would I alter the http request method that JEditor(and consequently JText)Pane uses in its setPage() method?

I cannot override setPage() to accomplish this, because setPage uses several variables with private access in JEditorPane and no get/set methods.

I cannot override getStream (Which JEditorPane uses in SetPage), because it uses a variable which has private access in JEditorPane (pageProperties) and for which there are not getting/setting methods.

I cannot extend URL and override openConnection; URL is final.

Any ideas?
[570 byte] By [Gengar003] at [2007-11-11 8:44:31]