Hello, thanks  very much Alexis De la Hoz. Could somebody help me againg? 

My question is how can I do, to avoid that the line disappear? Because it
paint one time and the circle or line appears and suddenly disappear. Thank
you very much.

I create a new JPanel its name was MiPanel with the Netbeans palette, after
I did this inside the ActionEvent:

      Graphics myGraphics = MiPanel.getGraphics();

        myGraphics.setColor(Color.red);

        myGraphics.drawLine(10, 10, 50, 50);

        MiPanel.repaint();

 

For example I’ve painted a oval, it stay in the screen, but if I minimize
the window it disappear, I think it is weird

With the line it is happening the next, I really appreciate your help.

 

 

                     \\\///
                    /         \
                  | \\   // |
                 ( | (.) (.) |)
----------o00o--(_)--o00o-------------------
JUAN PABLO ALVIS COLMENARES

Cel:         3142051045

Casa:     (57) (091) 8825066

Mail:      [email protected]

                [email protected]

                Zipaquirá - Colombia
--------ooo0-------------------------------------
           (      )      0ooo  
            \   (        (     )
             \_)         )  /
                         (_/    

 

 

 

 

-- 
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/javaprogrammingwithpassion?hl=en

<<image001.png>>

Reply via email to