Class FocusedBorder

  • All Implemented Interfaces:
    Border


    public class FocusedBorder
    extends Object
    implements Border
    This will alternate between a focus ring of 3 pixels and an arbitrary border you pass when constructing this object.
    • Constructor Detail

      • FocusedBorder

        public FocusedBorder(Border unfocusedBorder)
        Create a new FocusedBorder.
        Parameters:
        unfocusedBorder - the border to paint when the focus ring will not be painted.
    • Method Detail

      • isBorderOpaque

        public boolean isBorderOpaque()
      • paintBorder

        public void paintBorder(Component c,
                                Graphics g,
                                int x,
                                int y,
                                int width,
                                int height)