!7 sclass JListWithBackground extends JList { BufferedImage image; Color backgroundColor; *(BufferedImage *image, Color *backgroundColor) { jtransparent_hard(this); setColorizationFactor(this); } protected void paintComponent(Graphics g) { paintCenteredBackgroundImage(this, g, image, backgroundColor); super.paintComponent(g); } } p { BufferedImage img = bufferedImageContrastAndBrightness(loadImage2(#1101314), 1, 80); Color bgColor = img.getRGB(0, 0); JList list = swingNu(JListWithBackground, img, bgColor); fillListWithStrings(list, ll("Hello", "World")); setForeground(Color.red, list); showFrame(list); /*showFrame(setBackground(awtColor("#35312F"), jCenteredBackgroundImage(#1101314, wrap(list))));*/ }