Available Methods
- setSelected ( )
- addActionListener ( )
- isSelected ( )
- addItemListener ( )
- setToolTipText ( )
- setEnabled ( )
- setActionCommand ( )
- setFont ( )
- setBounds ( )
- addChangeListener ( )
- setText ( )
- setHorizontalAlignment ( )
- setBackground ( )
- setBorderPainted ( )
- isFocusOwner ( )
- setOpaque ( )
- setSize ( )
- getText ( )
- setName ( )
- setBorder ( )
- setForeground ( )
- setMinimumSize ( )
- setFocusPainted ( )
- requestFocusInWindow ( )
- setHorizontalTextPosition ( )
- setSelectedIcon ( )
- addFocusListener ( )
- setAlignmentX ( )
- setIconTextGap ( )
- setMnemonic ( )
- setPreferredSize ( )
- setModel ( )
- setFocusable ( )
- getClientProperty ( )
- setIcon ( )
- setVisible ( )
Related Classes
- java.io.File
- java.awt.Color
- java.awt.event.ActionEvent
- java.awt.event.ActionListener
- javax.swing.JPanel
- java.awt.Dimension
- javax.swing.JFrame
- java.awt.Font
- java.awt.event.MouseEvent
- javax.swing.JLabel
- javax.swing.JButton
- java.awt.event.KeyEvent
- java.awt.BorderLayout
- javax.swing.JOptionPane
- java.awt.Component
- javax.swing.JScrollPane
- java.awt.event.WindowEvent
- javax.swing.JTextField
- javax.swing.SwingUtilities
- java.awt.event.MouseAdapter
- javax.swing.JFileChooser
- javax.swing.JComponent
- java.awt.event.WindowAdapter
- javax.swing.JComboBox
- javax.swing.JTextArea
Java Code Examples for javax.swing.JCheckBox#setMinimumSize()
The following examples show how to use
javax.swing.JCheckBox#setMinimumSize() .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: NullableObject.java From jclic with GNU General Public License v2.0 | 6 votes |
/** Creates new NullableObject */ public NullableObject() { super(new java.awt.BorderLayout()); setOpaque(false); nullValue = true; check = new JCheckBox(); check.setPreferredSize(checkDim); check.setMinimumSize(checkDim); check.setFocusPainted(false); check.setSelected(false); add(check, java.awt.BorderLayout.WEST); button = buildButton(); button.setPreferredSize(btDim); button.setMinimumSize(btDim); button.setFocusPainted(false); add(button, java.awt.BorderLayout.CENTER); check.addActionListener(this); button.addActionListener(this); }
Example 2
Source File: GUIOptionPrivateDNS.java From PacketProxy with Apache License 2.0 | 5 votes |
private JCheckBox createCheckBox(){ checkBox = new JCheckBox(I18nString.get("Use private DNS server")); checkBox.addActionListener(e ->{ if(checkBox.isSelected()) privateDNS.start(new DNSSpoofingIPGetter(this)); else privateDNS.stop(); }); checkBox.setMinimumSize(new Dimension(Short.MAX_VALUE, checkBox.getMaximumSize().height)); return checkBox; }