full screen with changed resolution

I have a Java application that sets full screen mode and alters the resolution to 640 by 480. It works fine if I run the app with the following :

[quote]java -jar -Dsun.java2d.noddraw=true AlienSwarm.jar FULLSCREEN
[/quote]
My issue is the part I’ve highlighted in red. If I leave this bit out then the game “plays” but I just see a black screen. I’m currently trying to convert the program into an exe using netbeans and it unfortunately doesn’t seem to allow such options. Is there a relatively easy way of altering the resolution and yet still play in full screen mode?

I currently check all the modes that the device supports and select one that’s close to what I need. I also hide the cursor. I then use double buffering for running the display. I don’t think I do anything wierd and much of the code for this has been grabbed from sites like this. Any ideas?