Putting objects onto Frames
问题 I am creating a simple die rolling simulation that rolls dice when a button is pressed. I didn't add the action listener yet because I have a problem with showing up an object onto my frame. I created a class that generates a dice and gets an image of the dice with the number rolled but I can't seem to add the object onto my frame. public class DieFrame extends JComponent { private static final int FRAME_WIDTH = 500; private static final int FRAME_HEIGHT = 240; private JButton rollButton;