Canvas not drawing to JFrame
问题 I've been looking around for an answer to this, re-written my code multiple times, still nothing. Essentially I am trying to draw to a JFrame containing just a simple rectangle, yet each time nothing shows in the Frame - its just blank. package com.Graphics; import java.awt.*; import java.awt.image.*; import javax.swing.*; public class GraphicsMain { public static void main(String[] args) { GraphicsMain myGraphics = new GraphicsMain(); myGraphics.createDisplay(); } void createDisplay(){ int