Results 1 to 4 of 4
  1. #1
    papyon is offline Member
    Join Date
    Dec 2011
    Posts
    13
    Rep Power
    0

    Default I stuck my project from any piece

    i do card game in java2d .firs i created new class that class name of card is CARD.i added graphics2d function in CARD class.I added constructer .these parameter are (int CoordinateX,int CoordinateY) .then.i created main class.i added frame in mainclass.then i called CARD Class...

    CARD card1=new CARD();
    CARD card2=new CARD();

    after the added them

    my real question is .when i added frame.add(card1),frame.add(card2) in main class.after when i run.just i can see card2.

    so if i can add frame.add(card2),frame.add(card1) in main class.just i can see card1.

    Thank you:))my english is bad.sorry:((

  2. #2
    DarrylBurke's Avatar
    DarrylBurke is online now Forum Police
    Join Date
    Sep 2008
    Location
    Madgaon, Goa, India
    Posts
    11,257
    Rep Power
    19

    Default Re: I stuck my project from any piece

    If you're forever cleaning cobwebs, it's time to get rid of the spiders.

  3. #3
    papyon is offline Member
    Join Date
    Dec 2011
    Posts
    13
    Rep Power
    0

    Default Re: I stuck my project from any piece

    thank you bro.can you an example for me.how can i do it .:)

  4. #4
    DarrylBurke's Avatar
    DarrylBurke is online now Forum Police
    Join Date
    Sep 2008
    Location
    Madgaon, Goa, India
    Posts
    11,257
    Rep Power
    19

    Default Re: I stuck my project from any piece

    No, this is a forum -- not a code mill. And what's lacking in the examples provided in the tutorial I linked? You did go through that tutorial -- or are you waiting in the hope that someone here will spoonfeed you? Not likely to happen.

    db
    If you're forever cleaning cobwebs, it's time to get rid of the spiders.

Similar Threads

  1. Need help with a piece of code
    By sneeak in forum New To Java
    Replies: 13
    Last Post: 08-24-2011, 10:51 AM
  2. Working out chess piece location / piece name
    By danborgir in forum New To Java
    Replies: 5
    Last Post: 04-20-2011, 10:14 AM
  3. Can someone clarify this piece of code for me.
    By DavidPynes in forum New To Java
    Replies: 2
    Last Post: 04-17-2011, 10:22 AM
  4. problem getting a piece of data out of XML
    By Sparky in forum New To Java
    Replies: 8
    Last Post: 02-14-2011, 09:30 PM
  5. Decode this piece of Code
    By mikeyl62 in forum New To Java
    Replies: 2
    Last Post: 02-27-2010, 08:59 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •