File Explorer using Java - how to go about it?

后端 未结 2 866
长情又很酷
长情又很酷 2021-01-12 11:22

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.

2条回答
  •  死守一世寂寞
    2021-01-12 11:46

    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.

提交回复
热议问题