BufferedImage producing black background
问题 Alright so I'm making a game, and I'm trying to modify the original hit marker image by adding text on it, and I'm using the following code: import javax.swing.ImageIcon; import javax.swing.Timer; import java.awt.Color; import java.awt.Font; import java.awt.Graphics2D; import java.awt.Image; import java.awt.event.ActionEvent; import java.awt.event.ActionListener; import java.awt.image.BufferedImage; public class HitMarker { public static final Image rangeHitMarker = new ImageIcon(HitMarker