Tristate « JCheckBox « Java Swing Q&A





1. Tristate Checkboxes in Java    stackoverflow.com

I could really use a tri-stated checkbox in Java. It sounds like a simple thing, but I've only seen really ugly implementations. Three radio buttons just take up too ...

2. TriState CheckBox    coderanch.com

I finally got it I found some code on the java forums and I modified it to do what wanted. package org.nadeem.gui; import java.awt.Component; import java.awt.Graphics; import java.awt.event.ActionEvent; import java.awt.event.ActionListener; import java.awt.event.ItemListener; import java.awt.event.MouseAdapter; import java.awt.event.MouseEvent; import java.awt.event.MouseListener; import java.io.Serializable; import javax.swing.AbstractAction; import javax.swing.ActionMap; import javax.swing.ButtonGroup; import javax.swing.ButtonModel; import javax.swing.Icon; import javax.swing.JCheckBox; import javax.swing.SwingUtilities; import javax.swing.event.ChangeListener; import javax.swing.plaf.ActionMapUIResource; import javax.swing.plaf.UIResource; import ...

3. SWT Tristate Checkbox    coderanch.com

Hi, I am trying to bring three state checkbox(Checked/UnChecked/Intermediate) in a tableviewer...can any help me how to do this. I tried the http://www.eclipse.org/articles/Article-Table-viewer/table_viewer.html, But my SWT package has the heriarchy ITableLabelProvider from IBaseLabelProvider. But the above article tells as /////////////////////////////////////////////////// These methods are called by the TableViewer whenever a table element needs to be refreshed. Our ITableLabelProvider extends org.eclipse.jface.viewers.LabelProvider. This way, ...