ListCellRenderer « JCheckBox « Java Swing Q&A





1. JCheckBox, ListCellRenderer and mousListener    java-forums.org

Hi I am trying to add mouseListener to ListCellRenderer, but seems that ListCellRenderer do not recognize mouseEvent. I think Im doing it far from the right way. I try to click on of the list but it does not change its state. Java Code: import java.awt.*; import java.awt.event.*; import javax.swing.*; public class JListAndJCheckBox extends JFrame { JList lists; public JListAndJCheckBox() { ...