How to change the default Java icon in Jfilechooser
•
Java
I want to change the built - in Java icon from Jfilechooser JFrame class has seticon image() method of set icon But I can't find anything like Jfilechooser Without changing the coffee cup, anyone can easily recognize that my software is made in Java Can anyone help me avoid this?
Solution
The IIRC Jfilechooser icon is taken from the incoming JFrame By changing the icon of JFrame, you should also get the reflected icon change in Jfilechooser
code:
JFileChooser choice = new JFileChooser() choice.showOpenDialog(parent);
The icon used is the parent Icon
The content of this article comes from the network collection of netizens. It is used as a learning reference. The copyright belongs to the original author.
THE END
二维码