Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8825775
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T06:57:39+00:00 2026-06-14T06:57:39+00:00

I am trying to make a Java application. The java application is supposed to

  • 0

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:

  1. To start a new project
  2. To open a saved project
  3. 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");
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-14T06:57:40+00:00Added an answer on June 14, 2026 at 6:57 am

    I am not sure if there standard images available in Java, I believe there is not.

    But you can capture those images or download a pack.

    Then you just use the code from here

    JButton button = new JButton();
    
    
      try {
        Image img = ImageIO.read(getClass().getResource("resources/water.bmp"));
        button.setIcon(new ImageIcon(img));
      } catch (IOException ex) {
      }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm trying to make a JDialog in java desktop application and I don't want
I am trying to make a slideshow-like application in Java using NetBeans. I have
I'm trying to make a java android application with bluetooth and I have some
I created a Java desktop-application (using Swing) and am now trying to make it
I'm trying to make Microsoft Translator API in my Java application. I registered in
I am trying to make a program in Java that checks for three specific
I am trying to make my java application more standards compliant and one of
I'm trying to make sure my Java application takes reasonable steps to be robust,
I'm trying to figure out a way to make a Java application invisible to
i am trying to make a java application with GUI. i am writing a

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.