📜 ⬆️ ⬇️

Java vs kleptomania

Good afternoon, dear reader;)
I came across such a problem: I tried to figure out how to write GUI with pens in Java, and as soon as I started using swing, I didn’t see the AWT, which had something like this:

Caused by: java.lang.IllegalArgumentException: 53687091 incompatible with Text-specific LCD contrast key

Well, I’ve already rummaged everything, and changed the Yavamašínís and eclipses and so on and so forth ... the mention of the LCD prompted the idea that it’s something with hardware (widescreen monitor on the laptop, an eternal problem with firewood under XP ... who has HP pavilion), but This version was retracted for the reason: This is Java, cross platform !!! And here it is, moreover, even knowingly working searchlights did not compile.
')
And so I went to google in my own expection and did not find anything, but searching the line 53687091 incompatible with the Text-specific LCD contrast key, the same ill-fated links to the bourgeois forums, I think that's all, Google found only 3 links, and then fig.

The result surpassed all my expectations: the fact is that when I set up a program for myself, kleptomania is called, a handy thing sometimes. So this dirty trick changes the system font settings and therefore my swing refused to work ... I had to download ClearType Tuner PowerToy (http://www.microsoft.com/windowsxp/downloads/powertoys/xppowertoys.mspx) and edit the fonts :)

You never know who will come in handy, I thought everything, I arrived with my laptop :)

Source: https://habr.com/ru/post/59392/


All Articles