Here is the original code that created this window.
public class Driver00Graffiti {
    public static void main(String[] args) {
     JFrame frame = new JFrame("Graffiti lab");
           frame.setSize(400, 300);
           frame.setLocation(100, 50);
           frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
           frame.setContentPane(new Panel00Graffiti());
           frame.setVisible(true);
      }
   }
   public class Panel00Graffiti extends JPanel {
      public void paintComponent(Graphics g){
        g.setColor(Color.RED);
        g.fillRect(10,10,100,50);
        g.setColor(Color.YELLOW);
        g.drawString("window",20,30);
        }
    }
original window

Match these changes to the windows that result. (NOTE: some changes are in the driver and some are in the panel. Can you tell which is which? Describe what has changed for each line of code and Write the letter beside each number

  1. frame.setSize(100,300)
  2. g.fillRect(10,10,400,50);
  3. frame.setSize(400, 100);
  4. g.fillRect(100,10,100,50);
  5. g.fillRect(10,100,100,50);
  6. g.fillRect(10,10,50,100);
  7. g.drawString("window",100,30);

options