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...
Ok, I will try that.
I want it to hold the values of x & y
I wanna call that method in this method
private void execute(String actionLine, Graphics g ) {
System.out.println("action=" + actionLine);
Color color[] = {Color.pink,...
Yes, it returns points x & y. I will call this method then in another method that plots the pie charts.
public int getCenterPoint(int x1,int y1){
int xCenter = getWidth()/ 2;
int yCenter = getHeight()/ 2;
int radius = (int) (Math.min(getWidth(), getHeight()) * 0.4);
...
How to make centers for multiple pie charts using for loop?
Thank you a lot.
Do you have any idea about how to do PlotButton construction action?
import java.awt.BorderLayout;
import java.awt.Color;
import java.awt.Component;
import java.awt.Graphics;
import javax.swing.JPanel;
That what I have in DrawingCanvas class,but I do not how to do PlotButtonAction class that plots the pie charts.
public class DrawingCanvas extends JPanel {
int width;
int height;...
I want it to contain the DArray of cols and rows that is in the file text
I use Guiapp class and plot button that plot the charts of Drawing Canvas class( which draw the pies)
Is this code correct:
String cmd = "arc" x + " " + y + " " + theta + " " + color;
How to draw multiple pie charts according to DArray, and how to compute scale factor for 400*300?