Color Demo Java source code
#1

Code:
import java.awt.*;
import java.applet.*;
/*
<applet code=ColorDemo width=300 height=300>
</applet>
*/

public class ColorDemo extends Applet
{
        public void init()
        {       }
        public void paint(Graphics g)
        {
                Color c1 = new Color(255,100,100);
                Color c2 = new Color(100,255,100);
                Color c3 = new Color(100,100,255);

                g.setColor(c1);
                g.drawLine(0,0,100,100);
                g.drawLine(0,100,100,0);

                g.setColor(c2);
                g.drawLine(40,25,250,180);
                g.drawLine(75,90,400,400);

                g.setColor(c3);
                g.drawLine(20,150,400,40);
                g.drawLine(5,290,80,19);

                g.setColor(c1);
                g.drawLine(10,10,50,50);
                g.drawLine(70,90,140,100);

                g.setColor(Color.red);
                g.drawLine(190,10,90,30);
                g.drawLine(10,10,60,50);

                g.setColor(Color.cyan);
                g.drawLine(100,10,60,50);
                g.drawRoundRect(190,10,60,50,15,15);
        }
}
Reply

Important Note..!

If you are not satisfied with above reply ,..Please

ASK HERE

So that we will collect data for you and will made reply to the request....OR try below "QUICK REPLY" box to add a reply to this page
Popular Searches: demo of textarea, ccc paper demo, demo projectors london, bhruj khlifa ppt demo, freshars party anchouring demo in marathi speech, rfid warehouse robot demo, student registration system demo,

[-]
Quick Reply
Message
Type your reply to this message here.

Image Verification
Please enter the text contained within the image into the text box below it. This process is used to prevent automated spam bots.
Image Verification
(case insensitive)

Possibly Related Threads...
Thread Author Replies Views Last Post
  projects in core java project topics 6 16,073 16-01-2018, 11:15 AM
Last Post: dhanabhagya
  Steganography implemented in Java science projects buddy 14 12,139 24-05-2016, 10:15 AM
Last Post: dhanabhagya
  STUDENT INFORMATION SYSTEM IN JAVA project topics 14 10,532 19-08-2015, 11:28 PM
Last Post: Guest
  mini projects in java project topics 7 18,775 01-05-2015, 04:18 PM
Last Post: seminar report asees
  Visa Processing System full report and asp source code project topics 2 5,496 19-06-2014, 06:54 PM
Last Post: seminar report asees
  distributed cache updating for the dynamic source routing protocol project report tiger 4 3,000 05-03-2013, 02:22 PM
Last Post: Guest
  application projects in java and vb.net (titles and topics) project topics 1 5,463 28-11-2012, 01:11 PM
Last Post: seminar details
  Energy-Efficient Routing in Mobile Ad Hoc Networks: Mobility-Assisted Case (Java) project topics 1 1,735 12-11-2012, 12:42 PM
Last Post: seminar details
  Net Auction java based project report project topics 2 3,681 01-11-2012, 12:59 PM
Last Post: seminar details
  CBIR - Content Based Image Retrieval Using Shape & Color Characteristics seminar class 1 2,762 19-10-2012, 01:08 PM
Last Post: seminar details

Forum Jump: