We're making changes to the Community, so you may have received some notifications - thanks for your patience and welcome back. Learn more here.
Forum Discussion
travis h.4
9 years agoNew member | Level 1
Java dropbox GUI
How would one go about creating a uploadFile method in Java that has a GUI? for example I am trying to use JFileChooser to execute a selected file in which I can click on the file and call the file a...
travis h.4
9 years agoNew member | Level 1
Thanks for the response Gregory,
Yes, I am having troubles in context of the actual file upload method. The main guts of the program; user logging into dropbox and getting a access link etc. is working and connecting fine with no problems but when the upload method is executed I am getting errors (posted below this reply) the File object ( File file = getSelectedFile(); or File file = new File(); ) is all in red underline?
I also have a question posted in StackoverFlow pertaining to this question if you would like to look perhaps http://stackoverflow.com/questions/34505240/file-fileinputstream-issue?noredirect=1#comment56752945_34505240
If you would like any more info. in context of this I can post the whole program as well if need to be. I appreciate your response, Happy New Year!
OUTPUT:
Exception in thread "AWT-EventQueue-0" java.lang.RuntimeException: Uncompilable source code - no suitable constructor found for File(java.lang.String) constructor com.dropbox.core.DbxEntry.File.File(java.lang.String,java.lang.String,boolean,long,java.lang.String,java.util.Date,java.util.Date,java.lang.String,com.dropbox.core.DbxEntry.File.PhotoInfo,com.dropbox.core.DbxEntry.File.VideoInfo) is not applicable (actual and formal argument lists differ in length) constructor com.dropbox.core.DbxEntry.File.File(java.lang.String,java.lang.String,boolean,long,java.lang.String,java.util.Date,java.util.Date,java.lang.String) is not applicable (actual and formal argument lists differ in length) at daword.dropBox.actionPerformed(dropBox.java:173) at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:2022) at javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2346) at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:402) at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:259) at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonListener.java:252) at
About Dropbox API Support & Feedback
Find help with the Dropbox API from other developers.
5,875 PostsLatest Activity: 43 minutes agoIf you need more help you can view your support options (expected response time for an email or ticket is 24 hours), or contact us on X or Facebook.
For more info on available support options for your Dropbox plan, see this article.
If you found the answer to your question in this Community thread, please 'like' the post to say thanks and to let us know it was useful!