I am making a text editor but I can't find any way in which I can save the code like a modern IDE or notepad. Native windows notepad pops out a file-explorer to choose the path to save the file, can I make it in java?
Asked
Active
Viewed 43 times
0
-
1You mean an "open"/"save" dialog? – Federico klez Culloca Sep 01 '20 at 09:58
-
i mean the file explorer that pops out when we save some thing in native windows notepad – Coder Sep 01 '20 at 10:01
-
@Coder: that's the file chooser dialog. – Joachim Sauer Sep 01 '20 at 10:25
1 Answers
0
Don't know which technology you're using for the GUI but the Swing JFileChooser is just what you are looking for:
https://docs.oracle.com/javase/tutorial/uiswing/components/filechooser.html

Conffusion
- 4,335
- 2
- 16
- 28