Search:

Type: Posts; User: Wise girl

Search: Search took 0.10 seconds.

  1. Replies
    13
    Views
    1,465

    Re: Problem with saving image to a file

    Thank you a lot. It works now

    The problem was


    <f.paint( graphics2D );
    The correct is


    <drawingPanel.paint( graphics2D );>
  2. Replies
    13
    Views
    1,465

    Re: Problem with saving image to a file

    So, can I send my application as a jar file to your email?
  3. Replies
    13
    Views
    1,465

    Re: Problem with saving image to a file

    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...
  4. Replies
    13
    Views
    1,465

    Re: Problem with saving image to a file

    <
    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;...
  5. Replies
    13
    Views
    1,465

    Re: Problem with saving image to a file

    < 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;...
  6. Replies
    13
    Views
    1,465

    Re: Problem with saving image to a file

    Yes, but this code does not work maybe it requires JPanel.
  7. Replies
    13
    Views
    1,465

    Problem with saving image to a file

    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...
  8. Replies
    10
    Views
    1,580

    Re: Need help with pie charts locations

    Ok, I will try that.
  9. Replies
    10
    Views
    1,580

    Re: Need help with pie charts locations

    I want it to hold the values of x & y
  10. Replies
    10
    Views
    1,580

    Re: Need help with pie charts locations

    I wanna call that method in this method

    private void execute(String actionLine, Graphics g ) {
    System.out.println("action=" + actionLine);


    Color color[] = {Color.pink,...
  11. Replies
    10
    Views
    1,580

    Re: Need help with pie charts locations

    Yes, it returns points x & y. I will call this method then in another method that plots the pie charts.
  12. Replies
    10
    Views
    1,580

    Re: Need help with pie charts locations

    public int getCenterPoint(int x1,int y1){

    int xCenter = getWidth()/ 2;
    int yCenter = getHeight()/ 2;
    int radius = (int) (Math.min(getWidth(), getHeight()) * 0.4);
    ...
  13. Replies
    10
    Views
    1,580

    Need help with pie charts locations

    How to make centers for multiple pie charts using for loop?
  14. Replies
    12
    Views
    1,858

    Re: Help with pie chart

    Thank you a lot.
  15. Replies
    12
    Views
    1,858

    Re: Help with pie chart

    Do you have any idea about how to do PlotButton construction action?
  16. Replies
    12
    Views
    1,858

    Re: Help with pie chart

    import java.awt.BorderLayout;
    import java.awt.Color;
    import java.awt.Component;
    import java.awt.Graphics;
    import javax.swing.JPanel;
  17. Replies
    12
    Views
    1,858

    Re: Help with pie chart

    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;...
  18. Replies
    12
    Views
    1,858

    Re: Help with pie chart

    I want it to contain the DArray of cols and rows that is in the file text
  19. Replies
    12
    Views
    1,858

    Re: Help with pie chart

    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;
  20. Replies
    12
    Views
    1,858

    Help with pie chart

    How to draw multiple pie charts according to DArray, and how to compute scale factor for 400*300?
Results 1 to 20 of 20