Category: Java

Don’t use “skip” in antlr grammar for netbeans syntax highlight

use “channel (HIDDEN)” instead of “skip”, otherwise the netbeans will throw exception.


2021/11/16 0

validate() in TableCellRenderer affect performance in windows

validate() in TableCellRenderer affect performance in windows, just read the source code of DefaultTableCellRenderer, just override it with empty function body will increase huge performance. Only windows affect this, mac and linux wont.


2021/11/06 0

Netbeans bug

Netbeans 11.3 + JDK 13.0.2 + FlatLaf Light theme. Missing character “l” in the package name. If mouse over, tooptip shows correct name.


2020/05/28 0

6 hours to fix my antlr netbeans plugin

Used near 6 hours to fix my netbeans-antlr plugin. I have to remember these: Netbeans build in antlr library have to in-sync with the antlr i am using in my pluging. If they in different version, unexpected result will come out. In windows, if antlr grammar has some mistakes (I meant not problems, your grammar…
Read more


2020/05/09 0

Netbeans module failed to install nb-javac

If you netbeans maven module used this in pom.xml, then you will have this problem


2019/10/06 0

I thought Java swing is pixel graphic

In last 20 years, I thought Java swing is pixel graphic, but i found out it is vector. I tried to draw a 1 pixel line with 45 degrees, and when i zoom out, i proved it is not pixel base. So all drawLine, drawRect function calls are vector graphic.


2019/07/30 0