Available Methods
- putClientProperty ( )
- getClientProperty ( )
- add ( )
- setBorder ( )
- getHeight ( )
- setOpaque ( )
- setEnabled ( )
- getBorder ( )
- getWidth ( )
- setForeground ( )
- setBackground ( )
- isEnabled ( )
- getInsets ( )
- isOpaque ( )
- getParent ( )
- setToolTipText ( )
- setFont ( )
- removeMouseListener ( )
- getPreferredSize ( )
- getActionMap ( )
- setBounds ( )
- setMaximumSize ( )
- setPreferredSize ( )
- getComponents ( )
- getBackground ( )
- setLayout ( )
- setCursor ( )
- addMouseListener ( )
- paint ( )
- isVisible ( )
- getName ( )
- getFontMetrics ( )
- removeAll ( )
- repaint ( )
- addMouseMotionListener ( )
- removeMouseMotionListener ( )
- setAlignmentX ( )
- setInheritsPopupMenu ( )
- removeFocusListener ( )
- setVisible ( )
- getInputMap ( )
- removePropertyChangeListener ( )
- print ( )
- addFocusListener ( )
- setMinimumSize ( )
- isShowing ( )
- addPropertyChangeListener ( )
- getComponentCount ( )
- addKeyListener ( )
- revalidate ( )
- getComponent ( )
- getSize ( )
- getMaximumSize ( )
- getFont ( )
- getTransferHandler ( )
- getMinimumSize ( )
- getLocationOnScreen ( )
- getVisibleRect ( )
- setAutoscrolls ( )
- setFocusable ( )
- doLayout ( )
- addMouseWheelListener ( )
- getBounds ( )
- setSize ( )
- removeKeyListener ( )
- setFocusTraversalKeys ( )
- addHierarchyListener ( )
- removeMouseWheelListener ( )
- invalidate ( )
- addComponentListener ( )
- inside ( )
- AccessibleJComponent ( )
- hasFocus ( )
- remove ( )
- getTreeLock ( )
- setDoubleBuffered ( )
- setDefaultLocale ( )
- getLayout ( )
- requestFocus ( )
- WHEN_ANCESTOR_OF_FOCUSED_COMPONENT
- getAutoscrolls ( )
- getToolTipLocation ( )
Related Classes
- java.io.File
- java.util.logging.Level
- java.awt.image.BufferedImage
- 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
- java.awt.Graphics2D
- java.awt.Graphics
- javax.swing.JButton
- java.awt.event.KeyEvent
- java.awt.BorderLayout
- java.awt.Component
- javax.swing.JScrollPane
- java.awt.event.WindowEvent
- java.awt.Rectangle
- javax.swing.JTextField
- javax.swing.SwingUtilities
- java.awt.event.MouseAdapter
- javax.swing.ImageIcon
Java Code Examples for javax.swing.JComponent#setFocusable()
The following examples show how to use
javax.swing.JComponent#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: PaletteUI.java From pumpernickel with MIT License | 6 votes |
@Override public void installUI(JComponent c) { super.installUI(c); c.addPropertyChangeListener(JPalette.PROPERTY_COLORS, propertyLayoutListener); c.addPropertyChangeListener(PaletteUI.PROPERTY_HIGHLIGHT, propertyRepaintListener); c.setLayout(new PaletteLayoutManager()); c.setRequestFocusEnabled(true); c.addMouseListener(mouseListener); c.addFocusListener(focusListener); c.addKeyListener(keyListener); c.setFocusable(true); Fields fields = getFields((JPalette) c, true); fields.install(); c.setBorder(new CompoundBorder(new LineBorder(new Color(0xB0B0B0)), new FocusedBorder(getDefaultBorder()))); relayoutCells((JPalette) c); }
Example 2
Source File: ToolbarToggleButton.java From azure-devops-intellij with MIT License | 5 votes |
@Override public JComponent createCustomComponent(Presentation presentation) { final JComponent customComponent = super.createCustomComponent(presentation); customComponent.setFocusable(false); customComponent.setOpaque(false); return customComponent; }
Example 3
Source File: RightAngleBoxContainerPanelUI.java From pumpernickel with MIT License | 4 votes |
@Override public void installUI(JComponent c) { super.installUI(c); c.setFocusable(true); c.addKeyListener(keyListener); }
Example 4
Source File: InfoPanel.java From WorldGrower with GNU General Public License v3.0 | 4 votes |
private void makeUnfocussable(JComponent component) { component.setRequestFocusEnabled(false); component.setFocusable(false); }