JOptionPane Message with File Path

677 views Asked by At

Is there a way to put a filepath into a JOptionPane?

E.g. I have a folder in my project directory and would like to get the path to that folder and show it into the message.

1

There are 1 answers

4
Mohammed Sohail Ebrahim On BEST ANSWER
JOptionPane.showMessageDialog(null,"your file path,remember to use double slahses instead of single ones");