Search:

Type: Posts; User: Wise girl

Search: Search took 0.17 seconds.

  1. Replies
    13
    Views
    1,446

    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,446

    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,446

    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,446

    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,446

    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,446

    Re: Problem with saving image to a file

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

    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...
Results 1 to 7 of 7