void (Graphics g) { ((Graphics2D)g).setRenderingHint(RenderingHints.KEY_TEXT_ANTIALIASING, AntialiasingType.getKeyForCurrentScope(false)); g.setColor(myCurrentEmoji != null ? myStyle.myToolbarColor : myStyle.myBackgroundColor); RectanglePainter2D.FILL.paint((Graphics2D)g, 0, 0, getWidth(), getHeight(), 6.0); RectanglePainter2D.FILL.paint((Graphics2D)g, 0, 0, getWidth(), getHeight() - 6); if (myCurrentEmoji != null) { g.setColor(myStyle.myBorderColor); RectanglePainter2D.FILL.paint((Graphics2D)g, 0, 0, getWidth(), myStyle.myBorder.getFloat()); new TextLayout(myCurrentEmoji, myStyle.myEmojiFont, ((Graphics2D)g).getFontRenderContext()) .draw((Graphics2D)g, JBUIScale.scale(16), getHeight() - JBUIScale.scale(17)); if (myCurrentEmojiName != null) { g.setFont(myStyle.myFont); g.setColor(myStyle.myTextColor); g.drawString(myCurrentEmojiName, JBUIScale.scale(49), getHeight() - JBUIScale.scale(20)); } } }