Is there a method to check if a JButton has an Icon?
becouse I've been searching all over google and i cant seem to find anything

Is there a method to check if a JButton has an Icon?
becouse I've been searching all over google and i cant seem to find anything

how about using

jButton1.getIcon();

it usually returns null if no icon is attached.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of 1.21 million developers, IT pros, digital marketers, and technology enthusiasts learning and sharing knowledge.