Category Archives: Netbeans
How to make your netbeans more beautiful
Set to a better font size 4. Set the color 2024/04/27
Netbeans programmatically add watch expression to the “watch window”
use this code pom.xml 2024/01/05
Using FlatArcOrangeIJTheme gives me a new fresh look of NetBeans
I am not sure I add this L&F right, but it just works. Below are the steps Below is the code to use FlatArcOrangeIJTheme in your swing app I am thinking to create a NetBeans plugin to let users switch themes, but the above code has to be run before any swing component is unitized. […] 2022/01/08
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
Netbeans antlr plugin can format antlr source file
My netbeans antlr plugin finally can format antlr source code 2020/06/26
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 hangs in Mac since Netbeans 8.2 to now
I have a Netbeans module call “Maven Runner“, it was originally in Ant. When I install it into my local netbeans, it regularly cause the netbeans failed to start. When I was starting Netbeans, the splash came out, then it disappear, but the main screen never show up. Two months ago, i rewrite it into […] 2019/11/06
netbeans quick outline better support Antlr
2019/09/01
Net netbeans-antlr logo
Getting familiar with Adobe illustrator. For drawing GUI/logo from scatch, ai is better than photoshop. But photoshop is still good to draw on top of somebody designs. 2019/07/28
完全痴線 – JTextComponent個setCaretPosition完來係錯
如果你放”abc\ndef”落JTextComponent, 佢會變Q左”abc\r\ndef”, 連帶影響埋setCaretPosition()會錯位,補救方法如下: 經過修正之後, 我個netbeans outline plugin回復正常了 2019/07/13
Add a search box for Netbeans customize toolbar dialog
2018/12/31
Solved – The root cause why Netbeans can’t print colored text using latest Maven
Netbeans has bundled an old Maven, version 3.3.9, it can’t print out colored text to the output window. But when we switch to latest Maven 3.6.0, all color gone. I asked Netbeans guys, maven guys and jansi guys for help, but can’t get a solution. So i try to hack the maven code, i found […] 2018/12/30
Netbeans console has no color, but has color in my other Mac
Netbeans console has no color, but has color in my other Mac. Both Mac OS are same, JDK same too. Don’t know why. The code i use to print color text are: 2018/05/22
Netbeans outline plugin can parse antlr4 and cpp file
Netbeans outline plugin can parse antlr4 and cpp file now. Just press ‘ctrl+p’, it will be popup. 2018/04/15
Antlr4 error listener can’t hit with non-exist token
Antlr error listen can’t hit with non-exist token, so my netbeans antlr plugin can’t highlight the non-exist token. The error listener is generated by official antlr4 grammar https://github.com/antlr/grammars-v4/tree/master/antlr4 2018/04/14
Make changes to Netbeans IDE is just so easy
If you want to modify something to Netbeans IDE, just git clone the source, change its code, type “ant” and “ant try me”, very simple 2018/03/24
Netbeans talk in Cocoon seminar
Netbeans talk in Codeaholics seminar. A lots of people, i have demo to people create a simple plugin to extends Netbeans is just so easy. 2018/03/17
Netbeans lexer problem : Fix the lexer to not return null token in this state
I have met the problem “Fix the lexer to not return null token in this state.” (see below) and used one week to fix it by hacking netbeans source code. I found out Netbeans will not pass the whole file to lexer to parse. So if your antlr grammar used “skip” syntax, it has a […] 2018/03/13
Solved : “these characters need to be tokenized” for netbeans lang development
When developing highlight for new language, the antlr grammar has to return all tokens, you can’t skip token, otherwise your netbeans will throw this exception: 2018/03/10
Netbeans dev – file template iterator
This setting can define a new JPanel for new file creation. http://grepcode.com/file/[email protected]$org-netbeans-modules-cnd-asm@RELEASE712@org$netbeans$modules$cnd$asm$core$resources$layer.xml 2018/03/09
Netbeans qucik outline design II
2018/02/27
First draft of netbeans quick outline plugin
First draft of netbeans quick outline plugin, click ctrl-p / command-p in mac, then click on any row to jump to there. I think using table instead of tree is much better than eclipse. Also, eclipse show a lot of different icons (local var, global var, final var, etc…). It is useless and confusing our […] 2018/02/26
Netbeans quick outline
Eclipse quick outline is just so convenient, after i press command-O shortcut, i can type in keyword to filter the function/variable i want, then just click enter to jump to it. In netbeans, when i press cmomand-7, it opens navigator window which is similar to eclipse one, but it doesn’t support filtering and sometime can […] 2018/02/26
Met java bug JDK-8055829 in netbeans module
I am calling below code in netbeans, and it failed to retrieve any cookies from server. If i run these code in standalone, it got no problem. This only happen in Mac, to fix this by adding “CookieHandler.setDefault(null);” , see more detail https://bugs.openjdk.java.net/browse/JDK-8055829 2017/10/08
Netbeans antlr plugin great enhancement
I embed the Jgraphx library to netbeans antlr to provide interactive with the parser-tree. Now, the development methodology is: Create a g4 file Set the compile target, netbeans antlr plugin will real time generate a parser from your g4 file and try to parse the target file One the compile is success, that means your […] 2017/09/26
Netbeans anltr alpha version is done
Netbeans anltr alpha version is done, now you can keep changing your g4, it real time generate a parser to parser your specified file, generate the parser tree graph at the bottom. What i will do is: you click on any text on your target file, if highlight the node in the graph, so you […] 2017/09/24
Netbeans API : get mime string from File object
2017/09/20
Netbeans antlr can real time compile your g4 and test it using the selected target file
Netbeans antlr can real time compile your g4 and test it using the selected target file. If something goes wrong, it display the error messages at bottom window. 2017/09/17
My netbeans antlr plugin will do this: select the file you want to compile (see the combo box above), when you editing the .g4 file, it keep using the latest g4 to compile to file you have selected, and see the result in the bottom window. Is it a good design? 2017/09/17
Code to get all TopComponents and EditorPanes in netbeans
Code to get all TopComponents in netbeans, here is very useful link http://wiki.netbeans.org/DevFaqGetOpenEditorWindows 2017/09/16
Very good introduction to netbeans lookup
Very nice http://www.ssw.uni-linz.ac.at/Teaching/Lectures/KompTech/Netbeans_Platform_Introduction.pdf 2017/09/15