Thank you a lot. It works now
The problem was
<f.paint( graphics2D );
The correct is
<drawingPanel.paint( graphics2D );>
Type: Posts; User: Wise girl
Thank you a lot. It works now
The problem was
<f.paint( graphics2D );
The correct is
<drawingPanel.paint( graphics2D );>
So, can I send my application as a jar file to your email?
The main method is in another class (GUIApp class)
<import java.awt.BorderLayout;
import java.awt.Color;
import java.awt.GridLayout;
import java.awt.event.ActionEvent;
import...
<
import java.awt.Graphics2D;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.awt.image.BufferedImage;
import java.io.File;
import javax.imageio.ImageIO;...
< import java.awt.Graphics2D;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.awt.image.BufferedImage;
import java.io.File;
import javax.imageio.ImageIO;...
Yes, but this code does not work maybe it requires JPanel.
This code my code, but it does not save the image just blank page. PLEASE HELP
import java.awt.Graphics2D;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import...