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 developers, IT pros, digital marketers, and technology enthusiasts meeting, learning, and sharing knowledge.