import java.util.*; // import java.awt.*; import java.awt.event.*; import java.awt.geom.*; import javax.swing.*; // public class SimplePrint extends JFrame{ public SimplePrint() { super( "Random Image Gen." ); getContentPane().setBackground( Color.gray ); } ////////////////////////////////GUI CREATION///////////////////////////////////////////////// public void paint( Graphics g ) { drawText( g ); } public void drawText( Graphics g ) { super.paint( g ); Graphics2D graphics2D = ( Graphics2D ) g ; graphics2D.setFont(new Font("Goudy Handtooled BT", Font.PLAIN, 100)); graphics2D.setPaint(Color.orange); graphics2D.drawString("Java 2D", 25, 115); // graphics2D.drawString(strRanderizer, 25, 115); } ////////////////////////////////END GUI CREATION///////////////////////////////////////////////// public static void main (String[] args) { SimplePrint simply = new SimplePrint(); simply.setDefaultCloseOperation( JFrame.EXIT_ON_CLOSE ); simply.setSize( 425, 170 ); simply.setVisible( true ); } }