Category Archives: Java
如果想知道容器嘅原理
如果想知道容器嘅原理,我圈起左 2024/07/01
Simplest standalone ApacheDS server
This code run a standalone ApacheDS server, you can use ApacheDS studio to connect to it, it host localhost:10389 pom.xml Then you can connect it by ApacheDS Studio 2024/06/09
How to make your netbeans more beautiful
Set to a better font size 4. Set the color 2024/04/27
Quantr Dwarf Library – Print address/lineNo/ColNo from specific address
2024/04/07
Linear Regression in java
2024/02/14
Load jar and dynamically create object from it
Two maven project, project A load the project B jar, create the object dynamically and invoke the method Project A: Project A: Project B: 2023/03/17
Very good lucene book in cityu library
2022/08/21
Great ByteBuddy tutorial
refer to https://blog.csdn.net/wanxiaoderen/article/details/106544773 2022/07/02
Code to set accent color of FlatLaf
2022/05/09
Convert 64 bits binary string to BigInteger and maintain the sign
The first and third method converted successfully with sign. The second one fail. The reason 3rd way working is : It convert to biginteger and convert to long (then we have sign),then convert back to biginteger (also with sign) 2022/05/08
Netbeans : communicate with other JTopComponent in the same module
2022/05/01
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
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
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
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 […] 2020/05/09
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
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