0

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

2
Contributors
1
Reply
2
Views
6 Years
Discussion Span
Last Post by DavidKroukamp
0

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.

Edited by DavidKroukamp: n/a

This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.