Welcome to the Java Programming Forums


The professional, friendly Java community. 21,500 members and growing!


The Java Programming Forums are a community of Java programmers from all around the World. Our members have a wide range of skills and they all have one thing in common: A passion to learn and code Java. We invite beginner Java programmers right through to Java professionals to post here and share your knowledge. Become a part of the community, help others, expand your knowledge of Java and enjoy talking with like minded people. Registration is quick and best of all free. We look forward to meeting you.


>> REGISTER NOW TO START POSTING


Members have full access to the forums. Advertisements are removed for registered users.

Results 1 to 13 of 13

Thread: Image folder-icon

  1. #1
    Junior Member
    Join Date
    Mar 2021
    Posts
    9
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Default Image folder-icon

    Hello,

    How to change the folder from Javafx application located in the "/dist" folder

    I created a javafx application, but I don't want the look of the application on my computer to be a photo from a Java server?

  2. #2
    Super Moderator Norm's Avatar
    Join Date
    May 2010
    Location
    Eastern Florida
    Posts
    25,162
    Thanks
    65
    Thanked 2,725 Times in 2,675 Posts

    Default Re: Image folder-icon

    I don't understand the problem.
    Is this a problem with the program loading an imageicon from the wrong folder when it executes?
    Or is it a problem with the icon that is given to a shortcut that starts the program?
    Or what?
    If you don't understand my answer, don't ignore it, ask a question.

  3. #3
    Junior Member
    Join Date
    Mar 2021
    Posts
    9
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Default Re: Image folder-icon

    here in the picture everything is explained: https://ibb.co/TkqzgXp

  4. #4
    Super Moderator Norm's Avatar
    Join Date
    May 2010
    Location
    Eastern Florida
    Posts
    25,162
    Thanks
    65
    Thanked 2,725 Times in 2,675 Posts

    Default Re: Image folder-icon

    Is that the icon the OS gives to the shortcut to your app?
    If you don't understand my answer, don't ignore it, ask a question.

  5. #5
    Junior Member
    Join Date
    Mar 2021
    Posts
    9
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Default Re: Image folder-icon

    yes, that white icon is, but that other icon is an icon I would like to set up but I don't know how

  6. #6
    Super Moderator Norm's Avatar
    Join Date
    May 2010
    Location
    Eastern Florida
    Posts
    25,162
    Thanks
    65
    Thanked 2,725 Times in 2,675 Posts

    Default Re: Image folder-icon

    On windows, Right-click on the shortcut and select Properties. On the Shortcut tab, there is a button near the bottom to Change Icon
    If you don't understand my answer, don't ignore it, ask a question.

  7. #7
    Junior Member
    Join Date
    Mar 2021
    Posts
    9
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Default Re: Image folder-icon

    there is nowhere to Change Icon or anything like that, I've reviewed everything but it doesn't exist

  8. #8
    Super Moderator Norm's Avatar
    Join Date
    May 2010
    Location
    Eastern Florida
    Posts
    25,162
    Thanks
    65
    Thanked 2,725 Times in 2,675 Posts

    Default Re: Image folder-icon

    Are you using a Windows OS?
    Are you asking about the icon for a Shortcut?
    If you don't understand my answer, don't ignore it, ask a question.

  9. #9
    Junior Member
    Join Date
    Mar 2021
    Posts
    9
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Default Re: Image folder-icon

    yes, I'm using Windows 10, but I don't have the "Customize" option in the property, and that changes the image of the folder

  10. #10
    Super Moderator Norm's Avatar
    Join Date
    May 2010
    Location
    Eastern Florida
    Posts
    25,162
    Thanks
    65
    Thanked 2,725 Times in 2,675 Posts

    Default Re: Image folder-icon

    What kind of file are you trying to change the icon for?
    If you don't understand my answer, don't ignore it, ask a question.

  11. #11
    Junior Member
    Join Date
    Mar 2021
    Posts
    9
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Default Re: Image folder-icon

    for the icon from the JavaFX application located in the "/ dist" folder, that is if I'm not mistaken .jar file

  12. #12
    Super Moderator Norm's Avatar
    Join Date
    May 2010
    Location
    Eastern Florida
    Posts
    25,162
    Thanks
    65
    Thanked 2,725 Times in 2,675 Posts

    Default Re: Image folder-icon

    The icon for many files is for the command/program that is used to open the file. For example for .txt files the icon will be for some text editor. All .txt files will have the same icon.
    For .jar files the icon is for the java.exe program.
    I don't know it you can change the icon for an individual .jar file because the icon is for the java.exe program.
    If you create a shortcut to execute the jar file, the icon for the shortcut can be changed as I explained above.
    If you don't understand my answer, don't ignore it, ask a question.

  13. The Following User Says Thank You to Norm For This Useful Post:

    almir97 (March 6th, 2021)

  14. #13
    Junior Member
    Join Date
    Mar 2021
    Posts
    9
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Default Re: Image folder-icon

    I understood, thank you very much, you helped me

Similar Threads

  1. [SOLVED] Image Icon problem
    By xkendzu in forum Java Theory & Questions
    Replies: 4
    Last Post: February 3rd, 2014, 03:50 PM
  2. [SOLVED] Display icon/image in a JTable when reading in from MySQL
    By Psyclone625 in forum AWT / Java Swing
    Replies: 4
    Last Post: December 6th, 2013, 12:12 PM
  3. Replies: 0
    Last Post: February 14th, 2011, 06:10 AM
  4. Stupid thing can't find image icon right in front of it!!!
    By javapenguin in forum What's Wrong With My Code?
    Replies: 14
    Last Post: July 9th, 2010, 01:02 AM
  5. Icon change and lib folder problem
    By LeonLanford in forum What's Wrong With My Code?
    Replies: 0
    Last Post: October 21st, 2009, 03:00 AM