Java Applet which draws a graphic


DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 2 of 2

Thread: Java Applet which draws a graphic

  1. #1
    Join Date
    May 2004
    Posts
    2

    Java Applet which draws a graphic

    Hello,

    For a job at school, I have to create an java applet which draws a graphic like Excel. Here is an example of what I have to do :

    It is the first time that I work with java applet and I have to give my job back very soon. Can anybody help me?
    Explanation on how to do it and sources are welcomed.

    Thank you...

    Dens (from south of France)

  2. #2
    Join Date
    May 2004
    Posts
    3
    The surrounding parts should be easy (just regular components). The middle would be a custom drawing component (extend JPanel, override paintComponent()), with lines (Graphics.drawLine()) and rectangles (Graphics.fillRect()). You can switch colors with Graphics.setColor()

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center
 
 
FAQ
Latest Articles
Java
.NET
XML
Database
Enterprise
Questions? Contact us.
C++
Web Development
Wireless
Latest Tips
Open Source


   Development Centers

   -- Android Development Center
   -- Cloud Development Project Center
   -- HTML5 Development Center
   -- Windows Mobile Development Center