matthiasblaesing commented on issue #437: [NETBEANS-404] Adjust Javadoc font 
size to editor's zoom level, and avoid all-monospace font
   I'm a bit mixed. I had a quick view through the codebase. The default style 
of the HTMLEditorKit is changed/potentially changed at a lot of places:
   - autoupdate.ui/src/org/netbeans/modules/autoupdate/ui/     
   - java.navigation/src/org/netbeans/modules/java/navigation/  
   - openide.dialogs/src/org/openide/
   - openide.loaders/src/org/openide/loaders/
   - projectui/src/org/netbeans/modules/project/ui/
   all these try to modify the base stylesheet of the HTMLEditorKit, which used 
for all HTMLEditorKits. Othere places modify the stylesheet of a single 
document and not for the whole kit:
   - subversion/src/org/netbeans/modules/subversion/util/   
   - subversion/src/org/netbeans/modules/subversion/options/
   - openide.awt/src/org/openide/awt/
   They either just set base styles of add a filtering layer (SwingBrowserImpl).
   My take on this: If we want to change the base styles of the HTMLEditorKit, 
this should be done by one module and I think the `org.netbeans.swing.plaf` 
(Look & Feel Customization Library) would be the correct place for that. That 
way we won't get race-conditions for the customizations. If a module needs an 
individual styling, the stylesheet can be changed on the document level.
   @eirikbakke would you be willing to have a closer look at this? I know that 
I just turned a small problem into a discussion point, but I think bringing it 
up is the best option.
   If a local option is desired, I would check if the stylesheet of the single 
document that is used, is reset in `HTMLDocView#setContent`. If the stylesheet 
stays, I think it would be good to change the document stylesheet. If it is 
reset, it is IMHO worth checking whether resetting the stylesheet each time is 
an option.

This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:

With regards,
Apache Git Services

To unsubscribe, e-mail:
For additional commands, e-mail:

For further information about the NetBeans mailing lists, visit:

Reply via email to