Hi everyone, I'm wondering if anyone knows how to create a checkbox as part of the border. When you create a border and give it a title, the title appears on the top left of the border. I would like the checkbox to appear before the title. I also need to get events from the checkbox, whether it has been enabled or disabled. I have started writing the class, but I'm sure there is a better way to draw the check box so that it looks like a checkbox, with event listeners, so that the tick is drawn if selected. Any ideas? Thanks, Sarone.
public boolean isSelected() { return m_checkbox.isSelected(); } }
Brian Pipa
Ranch Hand
Joined: Sep 29, 2003
Posts: 299
posted
0
I saw a free class recently that did exactly that. I thought about using it in some of my apps. Unfortunately, I didn't bookmark it. I found the link to it in the Swing forum (I think). It was a page with a bunch of cool exanples of Swing stuff. Check or ask in the Swing forum. Brian