How do you create a directory when java swing gui application starts? I’ve been able to create it with ease for console apps, but the code doesn’t execute while trying to build a gui app. NOTE: no errors are shown either.
The result I’m looking for is when the gui application first starts, it creates a directory C:\foo\bar.
Thanks in advanced.
just hook up to the window listener
Ex: