I am set to create a file explorer using Java. The aim is to emulate the behavior of the default explorer as closely as possible, whatever may be the underlying OS.
I have done NO GUI programming in Java.
I have looked-up Swing, SWT and JFace, and I am beginning my project with this tutorial: http://www.ibm.com/developerworks/opensource/library/os-ecgui1/
I would like to know your opinions about the best approach to tackle this problem. If you could comment on complexity of coding, portability and OS-independence, and efficiency, it would be great.
Is there anything else I should know? Do some other ways exist?
Thanks a lot!
Thanks for the answers and replies.
Looks like I will choose Swing to implement the file explorer. What gives me the creeps is the thought that there would be nothing to mimic the default explorer view... Could you please provide some pointers about it? Do I get list of files, get icons and then arrange them in a grid fashion on the screen to show the default explorer view?
You would be better off using Swing. You need different versions of SWT and JFace for different operating systems.
The best approach is to start off simple, and add to what you have as you learn more.
To get you started, you need a JFrame with two JPanel children.
You'll need to add a JMenuBar to the JFrame. JMenu items are added to the JMenuBar. JMenuItem items are added to the JMenu.
Oracle's Swing Overview will help you add more Swing components to your project.