Java – use icons with jcheckbox
•
Java
I have a swing application that I want to use with icons JCheck@R_244_2419 @I constructed the following icons:
JCheck@R_244_2419@ unsubmit = new JCheck@R_244_2419@("Unsubmit",applet.undo);
When I do this, labels and icons appear in my GUI, but the box itself is nowhere to be found If I build a without an icon JCheck@R_244_2419 @, the box will come back I have tried to adjust the preferred size of the button, but it has no effect
Who knows what's going on here?
thank you,
Elliot
Solution
Icon is being used instead of a box Consider creating a next to each other JCheck@R_244_2419 @And jlabel, let jlabel keep imageicon
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
二维码