Results 1 to 3 of 3

Thread: Java Graphic

  1. #1
    Albion is offline Member
    Join Date
    Dec 2011
    Posts
    1
    Rep Power
    0

    Default Java Graphic

    How can i make a graphic in java like this photo in the link below
    ImageShack® - Online Photo and Video Hosting
    Attached Thumbnails Attached Thumbnails Java Graphic-untitled.png  

  2. #2
    Norm's Avatar
    Norm is offline Moderator
    Join Date
    Jun 2008
    Location
    SW Missouri
    Posts
    17,308
    Rep Power
    25

    Default Re: Java Graphic

    Override the paintComponent() method in JPanel and call the Graphics class's drawRect method several times.

  3. #3
    DarrylBurke's Avatar
    DarrylBurke is offline Member
    Join Date
    Sep 2008
    Location
    Madgaon, Goa, India
    Posts
    11,193
    Rep Power
    19

    Default Re: Java Graphic

    Or write a custom Icon implementation and display it in a JLabel.

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

Similar Threads

  1. Zoom on graphic
    By onephenom in forum Java 2D
    Replies: 1
    Last Post: 03-24-2010, 08:52 PM
  2. Java ACM graphic program help
    By jimmy-lin in forum New To Java
    Replies: 0
    Last Post: 11-16-2009, 04:40 AM
  3. Graphic library
    By xeannart in forum Advanced Java
    Replies: 6
    Last Post: 07-14-2008, 02:36 AM
  4. Basic Graphic
    By jkswebsite in forum Java 2D
    Replies: 6
    Last Post: 11-26-2007, 02:19 AM
  5. How do insert a Graphic
    By carl in forum New To Java
    Replies: 1
    Last Post: 08-01-2007, 05:30 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
  •