Posted by linuxhippy
on August 9, 2005 at 6:35 AM PDT
Just an idea:
Why isn't is possible to use a JEditorPane as a "Layout-Manager", you could specify class-names in your html-code and JEditorPane loads these classes, creates a new instance (default constructor) and adds it like it already does with JButtons or JTextFields.
It would allow the programmer to layout much faster and also create better looking guis.
The rest of the program would be able to get access to these components using .getComponent("name") - ok you would need some casting but thats it.
Hmm, of course access to the DOM tree would be even more great but this seems to be a dream far away ;-)
PS: Already thought about implementing this but since SWING code is proprietary, hmm, well :-(