Many of B4J libraries are open source. You can find the libraries source code here: https://github.com/AnywhereSoftware?utf8=✓&tab=repositories&q=b4j