Vladimir Sitnikov

Results 998 comments of Vladimir Sitnikov

`addNotify` and `updateUI` are different APIs. For instance, `addNotify` is not called when look and feel is changed, so if one wants to keep the control up to date, then...

>Is this only for tests? It is not only for tests. The case discovered in https://github.com/apache/jmeter/pull/574 where I want to implement automatic screenshot generation for Apache JMeter. The screens that...

What if https://github.com/bobbylight/RSyntaxTextArea/blob/cf1da1f03e380aaa7d85ab25bc1cbb3bec11a014/RSyntaxTextArea/src/main/java/org/fife/ui/rsyntaxtextarea/RSyntaxTextArea.java#L2141 is replaced with `refreshFontMetrics(getGraphics2D(g))`?

> Using any arbitrary one just seems wrong - perhaps it has different rendering hints for example I guess the component should paint itself with the exact rendering hints that...

> Per the comment, it appears I have seen the comment, however, it does not clarify why it uses `getGraphics()` rather than input `Graphics g` which is surprising :-/ That...

I do face NPE when rendering the documentation.

>It will simply use the FontMetrics that the realized RSTA instance used for rendering on-screen The documentation screenshots will be rendered off-screen. I do not see why RSTA requires on-screen...

Here you go: ```java import java.awt.Component; import java.awt.Container; import java.awt.Desktop; import java.awt.Dimension; import java.awt.Graphics2D; import java.awt.image.BufferedImage; import java.io.File; import java.io.IOException; import javax.imageio.ImageIO; import javax.swing.JTextArea; import javax.swing.SwingUtilities; import org.fife.ui.rsyntaxtextarea.RSyntaxTextArea; import org.fife.ui.rsyntaxtextarea.SyntaxConstants;...

> But that example never renders the text component in screen That is true. I need to generate screenshots without user interaction. Here's a sample page: https://jmeter.apache.org/usermanual/component_reference.html#If_Controller There are screenshots...

I've another reproducer. Use case: long documents are slow to display if text kerning is enabled, so I want to add a document listener that would disable kerning if text...