Skip to content

Unable to display center text in ring chart

I am trying to generate a donut or ring chart using jfree chart library. Ringchart was generated successfully but only the problem is centered text inside ring was not displaying. The following is the sample snippet. chart generation code And centered text related code is like below I am using jfreechart veri…

How to get rid of TemporaryFolder rule in Junit5

I’m migrating unit tests from Junit4 to Junit5. In the test I’m using TemporaryFolder rule from Junit4 API. To keep the test working I added @EnableRuleMigrationSupport annotation: As I understand, in Junit5 I need to use extensions instead of rules, but I can’t find any replacement for Temp…

CDI events fire() create new observers instances

I’m writing a JavaFX application (JavaSE) with CDI (Weld). I’m trying to use CDI Events to replace the awful event system of JavaFX (JavaFX Properties). I was able to let CDI create my JavaFX controllers properly. It means that when a FXML is loaded, the controller is created by CDI (using FXLoade…

how to zipping multiple files and encode to base64?

I have made a few lines of code and worked for a while, the program I created is like this. When I compress the .zip format, an example.zip file will be formed in the directory. The next step the program runs the command to look for the .zip filename in the directory. If found it will be converted into base64