Results 1 to 7 of 7
  1. #1
    saaak12 is offline Member
    Join Date
    Nov 2012
    Posts
    5
    Rep Power
    0

    Default hi i want to ask how to make grafik

    hi everyone i want to ask how to make a grafik by using drawArt , i still dont understand how to change table with component for grafik into number in drawArt . can someone give me example, please! thanks for reply

  2. #2
    quad64bit's Avatar
    quad64bit is offline Moderator
    Join Date
    Jul 2009
    Location
    VA
    Posts
    1,323
    Rep Power
    7

    Default Re: hi i want to ask how to make grafik

    I don't know what you are referring to - is drawArt a package?

  3. #3
    saaak12 is offline Member
    Join Date
    Nov 2012
    Posts
    5
    Rep Power
    0

    Default Re: hi i want to ask how to make grafik

    i want to convert data from table into grafik
    example Table total
    Game Action 40
    Game Arcande 20

    from that data into grafik pie . my teacher suggest me using drawArc to make grafik pie .
    Last edited by saaak12; 11-14-2012 at 01:43 PM.

  4. #4
    saaak12 is offline Member
    Join Date
    Nov 2012
    Posts
    5
    Rep Power
    0

    Default Re: hi i want to ask how to make grafik

    sorry i typing wrong
    its drawArc

  5. #5
    DarrylBurke's Avatar
    DarrylBurke is offline Forum Police
    Join Date
    Sep 2008
    Location
    Madgaon, Goa, India
    Posts
    11,458
    Rep Power
    20

    Default Re: hi i want to ask how to make grafik

    Here's a tutorial that will help you learn: Lesson: Working with Geometry (The Java™ Tutorials > 2D Graphics)

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

  6. #6
    saaak12 is offline Member
    Join Date
    Nov 2012
    Posts
    5
    Rep Power
    0

    Default Re: hi i want to ask how to make grafik

    Thanks a lot

  7. #7
    ojinuka is offline Member
    Join Date
    Nov 2012
    Posts
    1
    Rep Power
    0

    Default Re: hi i want to ask how to make grafik

    What's up! You want to learn how to make graphics right? You import java.awt.Graphics, javax.swing.JPanel. Create a class to inherit from class JPanel, override the paintComponent(Graphics g) method, use the following code to make a simple drawing on screen : g.drawString() for text. g.drawImage() to animate your image. you can get a list of more if you try out the given ones successfully.

Similar Threads

  1. Replies: 2
    Last Post: 10-31-2012, 05:31 PM
  2. What do I need to make this?
    By Sonicfr in forum New To Java
    Replies: 8
    Last Post: 05-16-2012, 09:18 PM
  3. Replies: 4
    Last Post: 07-23-2011, 09:08 PM
  4. how to make .exe
    By vibaviattigala in forum New To Java
    Replies: 4
    Last Post: 07-22-2011, 11:07 PM
  5. Trying to make a bot
    By ighor10 in forum New To Java
    Replies: 4
    Last Post: 04-10-2010, 04:29 AM

Posting Permissions

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