23 lines
546 B
Java
23 lines
546 B
Java
package rasterImage;
|
|
|
|
import java.awt.*;
|
|
import javax.swing.*;
|
|
|
|
/**
|
|
* This program demonstrates how to build up an image from individual pixels.
|
|
* @version 1.14 2016-05-10
|
|
* @author Cay Horstmann
|
|
*/
|
|
public class RasterImageTest
|
|
{
|
|
public static void main(String[] args)
|
|
{
|
|
EventQueue.invokeLater(() ->
|
|
{
|
|
JFrame frame = new RasterImageFrame();
|
|
frame.setTitle("RasterImageTest");
|
|
frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
|
|
frame.setVisible(true);
|
|
});
|
|
}
|
|
} |