adding border to jcheckbox

Does anyone know if there is an easy way to put a border around a JCheckBox object including the label? setBorder doesn't seem to have any effect. I know I could put each checkbox inside of a JPanel and border that, but is there no way to border the entire JCheckBox by itself? Thanks

Answers


on a jcheckbox the setborder does work, its just that the border is not painted. all you have to do is call setBorderPainted(true) and it should work.


Need Your Help

Unzip Files in iOS

ios objective-c ziparchive

I have a .zip folder which contains some images. I want it to unzip into Documents directory in iOS device. I tried with the following link,

how can js go from white to blue?

javascript jquery html css

I am trying to make a menu that when you hover other menu item, there is a change from a white color to a tone of blue. I was thinking to use opacity, but had no luck, what would you suggest?

About UNIX Resources Network

Original, collect and organize Developers related documents, information and materials, contains jQuery, Html, CSS, MySQL, .NET, ASP.NET, SQL, objective-c, iPhone, Ruby on Rails, C, SQL Server, Ruby, Arrays, Regex, ASP.NET MVC, WPF, XML, Ajax, DataBase, and so on.