Win a copy of Pro Spring MVC with WebFlux: Web Development in Spring Framework 5 and Spring Boot 2 this week in the Spring forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Jeanne Boyarsky
  • Liutauras Vilda
Sheriffs:
  • Rob Spoor
  • Bear Bibeault
  • Tim Cooke
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Piet Souris
Bartenders:
  • Frits Walraven
  • Himai Minh

how to navigate network drive on Mac using swings

 
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi Everyone,

I tried to navigate network drive with the help of JFileChooser ,JDirectortyDialog,JDirectoryChooser and FileDialog.

But i am not able to navigate to the workstations which are connected to the network.

For e.g.
Network/abc/workstationNumber1

There are so many workstations like workstationNumber1 in the above example which are connected to the network.

My requirement is to navigate through these workstaions,
and there should be a "CreateNewFolder" option on the component(eg-JFileChooser) which we are going to use for the above requirement.

Thanks,
Lucky
 
author and jackaroo
Posts: 12199
280
Mac IntelliJ IDE Firefox Browser Oracle C++ Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Can you please provide a little more information? My immediate questions would be:
  • Have you already mounted the network drive on your Mac through the finder?


  • If not ...
  • Are you trying to connect to another Apple operating system (in which case you probably will want to use Apple Filing Protocol (AFP) (your URLs when connecting via the finder would probably look something like afp://server/share))
  • Are you trying to connect to a Microsoft system (in which case you probably want to use the Server Message Blocks/ Common Internet File System (SMB/CIFS) protocol (and your URLs will look something like smb://server/share))
  • Are you trying to connect to a Unix / Linux like system (in which case you probably want to use Network Filing System (NFS) (and your URLs will look something like nfs://server/share))
  • Are you trying to connect using Web Distributed Authoring and Versioning (WebDAV) (in which case your URLs are going to look something like http://server/share)


  • Notes:
  • These are just the common networking protocols. There are others.
  • The very first option (connecting to the share using the finder, then using standard Java) is the easiest option for you as a developer. (There is always a tradeoff between amount of work performed and user experience )
  • The list of protocols / operating systems should only be considered a guideline (at best). They are the protocols that the relevant operating systems would normally use by default if they do not have to worry about interconnectivity. But there is no reason why a system running one of the Microsoft OSes could not be supporting NFS. Likewise a Linux system could be supporting SMB/CIFS and/or AFP.


  • Once you have answers to some of these questions, you could try plugging the name of the network protocol and the word Java into Google and see what sort of libraries you come up with.

    Regards, Andrew
     
    If you want to look young and thin, hang around old, fat people. Or this tiny ad:
    Thread Boost feature
    https://coderanch.com/t/674455/Thread-Boost-feature
    reply
      Bookmark Topic Watch Topic
    • New Topic