Class WindowFocusBorder

    • Constructor Detail

      • WindowFocusBorder

        public WindowFocusBorder​(Border focusedBorder,
                                 Border unfocusedBorder)
        Creates an AlternativeBorder changes depending on parent window focus.
        Parameters:
        focusedBorder - border to show, when the parent window has the focus
        unfocusedBorder - border to show, when the parent window does not have the focus
      • WindowFocusBorder

        public WindowFocusBorder​(int top,
                                 int left,
                                 int bottom,
                                 int right,
                                 Color focusedColor,
                                 Color unfocusedColor)
        Creates a matte border that changes color depending on parent window focus.
        Parameters:
        top - an integer specifying the width of the top, in pixels
        left - an integer specifying the width of the left side, in pixels
        bottom - an integer specifying the width of the right side, in pixels
        right - an integer specifying the width of the bottom, in pixels
        focusedColor - focused color
        unfocusedColor - unfocused color
        See Also:
        MatteBorder