[Ubuntu-ma] (sans objet)

H. Mohammed Amine h0uss4m at gmail.com
Ven 6 Aou 12:09:54 BST 2010


y a t il une ML Marocaine dédiée à la programmation java ?

On Fri, Aug 6, 2010 at 11:06 AM, H. Mohammed Amine <h0uss4m at gmail.com>wrote:

> Merci ! got it and i'm working on it ! even if i'm Still having Some
> Problems with how to make the rotate() and translate() Functions Active for
> the Tire Shape !
>
>
> package biketire;
> import java.awt.*;
> import java.awt.event.*;
> import java.awt.geom.*;
> /**
>  * @author H0uss4m
>  */
> public class Main extends Frame {
> public int xCenter=70;
> public int yCenter=330;
> public int xPrim=140;
> public int yPrim=660;
> public int Diam=70;
>
>
>
>     Line2D Ground = new Line2D.Double(900,400 ,50 ,400);
>     Ellipse2D Tire = new Ellipse2D.Double(xCenter,yCenter,Diam,Diam);
>
>
>
>      Stroke drawingStroke = new BasicStroke(2);
>    public void paint(Graphics g) {
>   Graphics2D graph = (Graphics2D)g;
>     graph.setStroke(drawingStroke);
>     graph.setPaint(Color.BLACK);
>     graph.draw(Ground);
>     graph.draw(Tire);
>    for (int i=0; i<16; i++) {
>       graph.translate(xPrim, yPrim);
>
>     }
>
>
>     }
>
>     public static void main(String[] args) {
>         // TODO code application logic here
>         Frame frame = new Main();
>
>     frame.addWindowListener(new WindowAdapter(){
>       public void windowClosing(WindowEvent we){
>         System.exit(0);
>          }
>       });
>
>     frame.setSize(950,1000);
>     frame.setVisible(true);
>
>     }
>
> }
>
> thnx Ayoub !
>
> 2010/8/6 Gmail account <allali.ayoub at gmail.com>
>
>> Bonjours
>> Je ne sais pas si vous le saviez ou pas. Mais, il existe en Java une
>> bibliothèque de fonction pour le 2D "Java2D" ; translation, rotation est
>> bien autres fonctions ...
>>
>> ...Une remarque sur votre poste . C'est qui dois être poster dans une
>> Mailing-list ou forum  dédiée à la programmation en java vous auriez peut
>> être ce que vous cherchez
>>
>> ---------------------------------------
>> AYYOUB Allali
>> JEE junior developer
>> +(212) 644 67 79 24
>>
>>
>> --
>> Ubuntu-ma mailing list
>> Ubuntu-ma at lists.ubuntu.com
>> Modify settings or unsubscribe at:
>> https://lists.ubuntu.com/mailman/listinfo/ubuntu-ma
>>
>>
>
>
> --
> *H.Mohammed Amine*
>
>
> Ce Qui Ne Nous Tue Pas Nous Rends Plus Fort !
>
>
>


-- 
*H Mohammed Amine*


Ce Qui Ne Nous Tue Pas Nous Rends Plus Fort !
-------------- section suivante --------------
Une pièce jointe HTML a été nettoyée...
URL: https://lists.ubuntu.com/archives/ubuntu-ma/attachments/20100806/e5d57e5b/attachment.htm 


Plus d'informations sur la liste de diffusion Ubuntu-ma