I want to make an \"Open\" and \"Save\" dialog in java. An example of what I want is in the images below:
Open:
Maybe you could take a look at JFileChooser, which allow you to use native dialogs in one line of code.