If you are using your IDE to auto code then stop it, stop it right now, and learn Java, it is actually easier and more reliable to do things manually than use the auto code generated by the IDE's.
Campbell Ritchie has given you a reference to a very good tutorial, take some time and go through it. It will make your life a lot easier in the coding world.
BTW: I started using NetBeans back in the late 90's and I have seen programmers get much, much more dead ends (completely unusable code), errors, and frustration in their projects than the
auto coders have ever helped. Do yourself a favor and get of the idea that
you should ever use the auto coders as a shortcut or presume to develop any significant portion of your project with them.
sandun wijenayaka wrote:When filling the Java progress bar, it is needed to indicate completed percentage in the middle of the progress bar. (as an example 15%).
How to do it with coding, without using an IDE.