When you finish your app you can make it a JAR file which will run without the black window. Also you can make a batch file and use the command javaw instead of java to run the app.
This is an example of my jar file. I have multiple class files so I used the * wildcard.
jar cvmf manifest.txt Jdownloader.jar Jdownloade*.class jdownloader.jpg
Hope this helps.