Hi - I downloaded some example code from a zip online. I noticed that there were package signatures on all the files... ie there was package whatever.whatever on the first line of each class file. I took them out and then compiled it, the GUI pop up but now none of the functionality runs! I get a lot of exception messages, starting with how data was imported into the GUI. Is it not possible to run code once a package signature has been put into it?? Can anyone exlain this and tell me why that is? And if you know how to work around it, that would be a great help.
Welcome to JavaRanch, Tyrone! It's possible to take a Java application with packages, and edit it to remove those packages, and have it still work. You'd have to not just remove package declaration statements, but you'd also likely have to remove a few import statements, as well as any other bits of code that attempt to use an orignial class's fully qualified name. Of course, you might run into situations where two of the original classes then have the same name. So, you'd have to rename one, locate all references to it, and change those as well. Of course, if this is all just to avoid learning how packages work, then your time may well be better spent learning 'em. Good luck.