void (Graphics g) { super.paintComponent(g); if (emojiPicker.getCurrentFocusTarget() == category) { buttonSize.update(); double x = getWidth() / 2.0, y = getHeight() / 2.0; g.setColor(myStyle.myFocusBorderColor); RectanglePainter2D.DRAW.paint((Graphics2D)g, x - buttonSize.getWidth() / 2.0, y - buttonSize.getHeight() / 2.0, buttonSize.getWidth(), buttonSize.getHeight(), 4.0); } if (myActiveCategory == category) { double height = JBUIScale.scale(2F); g.setColor(myStyle.mySelectedCategoryColor); RectanglePainter2D.FILL.paint((Graphics2D)g, 0, getHeight() - height, getWidth(), height); } }