DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

+ Reply to Thread
Results 1 to 2 of 2
  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()

Bookmarks

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


Top DevX Stories

Easy Web Services with SQL Server 2005 HTTP Endpoints
JavaOne 2005: Java Platform Roadmap Focuses on Ease of Development, Sun Focuses on the "Free" in F.O.S.S.
Wed Yourself to UML with the Power of Associations
Microsoft to Add AJAX Capabilities to ASP.NET
IBM's Cloudscape Versus MySQL


Sponsored Links