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#setFocusable()
The following examples show how to use
javax.swing.JCheckBox#setFocusable() .
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: CompletionScrollPane.java From netbeans with Apache License 2.0 | 6 votes |
public CompletionScrollPane(JTextComponent editorComponent, MouseListener mouseListener) { setHorizontalScrollBarPolicy(HORIZONTAL_SCROLLBAR_NEVER); setVerticalScrollBarPolicy(VERTICAL_SCROLLBAR_AS_NEEDED); // Use maximumSize property to store the limit of the preferred size setMaximumSize(new Dimension(400, 300)); // At least 2 items; do -1 for title height int maxVisibleRowCount = Math.max(2, getMaximumSize().height / CompletionLayout.COMPLETION_ITEM_HEIGHT - 1); // Add the completion view view = new JPanel(); JCheckBox checkbox = new JCheckBox("Rename comments"); checkbox.setFocusable(false); view.add(checkbox); JCheckBox checkbox1 = new JCheckBox("Rename Test Class"); checkbox1.setFocusable(false); view.add(checkbox1); setViewportView(view); installKeybindings(editorComponent); }