mirror of
https://bitbucket.org/Mattrixwv/javatutorials.git
synced 2025-12-06 18:43:58 -05:00
Created a program that will draw a rainbow in a popup window
This commit is contained in:
21
DrawRainbowTest.java
Normal file
21
DrawRainbowTest.java
Normal file
@@ -0,0 +1,21 @@
|
||||
//Java/JavaTutorials/DrawRainbowTest.java
|
||||
//Matthew Ellison
|
||||
// Created: 02-28-19
|
||||
//Modified: 02-28-19
|
||||
//This program runs a test of DrawRainbow
|
||||
|
||||
|
||||
import javax.swing.JFrame;
|
||||
|
||||
|
||||
public class DrawRainbowTest{
|
||||
public static void main(String[] argv){
|
||||
DrawRainbow panel = new DrawRainbow();
|
||||
JFrame application = new JFrame();
|
||||
|
||||
application.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
|
||||
application.add(panel);
|
||||
application.setSize(1920, 1080);
|
||||
application.setVisible(true);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user