Open Show File Dialog Kotlin

[Solved] Open Show File Dialog Kotlin | Vb - Code Explorer | yomemimo.com
Question : kotlin open file dialog

Answered by : xyndra

fun openFile(): File { val chooser = JFileChooser() chooser.currentDirectory = File(".") val result = chooser.showOpenDialog(null) assert(result == JFileChooser.APPROVE_OPTION) return chooser.selectedFile
}

Source : | Last Update : Sun, 02 Oct 22

Answers related to open show file dialog kotlin

Code Explorer Popular Question For Vb