I just made a program using JOGL and one problem I'm having is that if I don't include the arguments -Dsun.java2d.noddraw=true and -Dsun.awt.noerasebackground=true then the screen flashes and sometimes just stops refreshing until I jiggle it a little

If I include these arguments everything is perfect but my intention is to design the program for the computer illiterate, so I don't want to make them use the command line. I could make a .bat but I guess since I learned how to put resources inside a jar file I've been wanting to keep everything contained to one file. So is there anyway I can make my jar file run with these argument or set these options within the program?

Have you tried using System.setProperty as the first couple of lines in your main method?

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.