Class SearchField

All Implemented Interfaces:
com.formdev.flatlaf.extras.components.FlatComponentExtension, com.formdev.flatlaf.extras.components.FlatStyleableComponent, ImageObserver, MenuContainer, Serializable, Accessible, Scrollable, SwingConstants

An enhanced text field for search operations with built-in options for case-sensitive, word-matching, and regex search modes. Includes placeholder text and a clear button.
See Also:
  • Field Details

  • Constructor Details

    • SearchField

      public SearchField(String placeholder, int visibleButtons)
      Constructs a new SearchField with the specified placeholder text and visible buttons.
      Parameters:
      placeholder - the placeholder text to display when the field is empty
      visibleButtons - the buttons to make visible (use bitwise OR of button constants)
  • Method Details

    • setWarningOutlineEnabled

      public void setWarningOutlineEnabled(boolean b)
    • getOptionsMenu

      public JPopupMenu getOptionsMenu()
    • optionsButton

      public JButton optionsButton()
    • caseButton

      public JToggleButton caseButton()
    • wordButton

      public JToggleButton wordButton()
    • regexButton

      public JToggleButton regexButton()
    • enlarge

      public void enlarge(float enlargeFactor)
    • iconColor

      public static Color iconColor()