Does anyone here use Look and Feel Alloy? I ran into a weird bug with anti-aliasing and JTextComponents. The default alloy does not use anti-aliasing at all, so I have to force it to create its own user interfaces. This works great in most cases, but there are certain characters that damage antialiasing.
For example, if Alloy is set to Look and Feel, and I paste some Hebrew text into the JTextComponent, for example: ืฉืืื, ืื ืฉืืืื ืฉืื ืืื ืืืงืืื ', WHOLE JTextComponent suddenly loses anti-aliasing - forever.
The strange thing is that I donโt even extend AlloyTextPaneUI, but BasicTextPaneUI to do the smoothing, so I am puzzled that the alloy fits into the picture (other Look and Feels seem very good). A.
I find it very difficult to track this error ... Has anyone encountered the same problem?
Here is a quick example demonstrating the problem:
import com.incors.plaf.alloy.AlloyLookAndFeel; import com.incors.plaf.alloy.themes.glass.GlassTheme; import javax.swing.*; import javax.swing.plaf.ComponentUI; import javax.swing.plaf.basic.BasicTextPaneUI; import javax.swing.text.BadLocationException; import javax.swing.text.StyledDocument; import java.awt.*; public class Scrap { static {
source share