Java swing windows file chooser code example Example: File file = fc.showOpenDialog File file = fc.showOpenDialog