I am trying to make a Java application. The java application is supposed to have a menu bar with a flow layout.
Now, in this menu bar, I want to introduce three buttons:
- To start a new project
- To open a saved project
- To save a project
I want to make use of images in these buttons. Much like Word associated an image of a blank sheet of paper to start a new project, a directory to open a saved project, and a diskette to save a project.
How can this be done in Java please?
Edit
I tried this code:
UIManager.getIcon("FileView.directoryIcon");
UIManager.getIcon("FileView.fileIcon");
UIManager.getIcon("FileView.floppyDriveIcon");