Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import graphics.*;
- import java.awt.Color;
- import java.awt.Font;
- public class Graphics {
- public static void main(String[] args) {
- Window w = new Window ();
- Color red = new Color (255,100,100);
- w.setColor(red);
- Color black = new Color (0,0,25);
- Color white = new Color (255,255,255);
- Color notWhite = new Color(205,205,205);
- Font SANS = new Font ("Comic sans" , 1 ,15);
- w.fillRect(0, 0, 650, 500);//RED
- w.setColor(black);
- w.fillRect(48, 248, 95 ,45 );//MOREDETAIL
- w.fillRect(48, 298, 95 ,45 );//MOREDETAIL
- w.fillRect(48, 348, 95 ,45 );//MOREDETAIL
- w.fillRect(48, 398, 95 ,45 );//MOREDETAIL
- w.fillRect(273, 48, 185, 45);//MORERDETAIL
- w.setColor(black);
- w.fillRect(250, 25, 375, 450);//BEG BLACK BOX
- w.setColor(notWhite);
- w.fillRect(255, 30, 365, 440);//DETAIL
- w.setColor(black);
- w.fillRect(273, 48, 185, 45);//MOREERDETAIL
- w.fillRect(273, 98, 185, 125);//MOREERDETAIL
- w.fillRect(273, 248, 84, 104);//MOREERDETAIL
- w.fillRect(373, 248, 84, 104);//MOREERDETAIL
- w.fillRect(269, 424, 52, 32);//MOREERDETAIL
- w.fillRect(549, 49 ,52, 42);//MOREERDETAIL
- w.fillRect(549, 99 ,52, 42);//MOREERDETAIL
- w.fillRect(549, 149 ,52, 42);//MOREERDETAIL
- w.fillRect(549, 199 ,52, 42);//MOREERDETAIL
- w.fillRect(549, 299 ,52, 42);//MOREERDETAIL
- w.fillRect(549, 349 ,52, 42);//MOREERDETAIL
- w.fillRect(549, 414 ,52, 42);//MOREERDETAIL
- w.fillRect(48, 28, 104, 104);//MOREERDETAIL
- w.setColor(white);
- w.fillRect(50, 30, 100, 100);//SMOL BOX
- w.fillRect(50, 250, 90 ,40 );//SMOL RECTANGLE 1
- w.fillRect(50, 300, 90 ,40 );//SMOL RECTANGLE 2
- w.fillRect(50, 350, 90 ,40 );//SMOL RECTANGLE 3
- w.fillRect(50, 400, 90 ,40 );//SMOL RECTANGLE 4
- w.fillRect(275, 50, 180, 40);//WHITE
- w.fillRect(275, 100, 180, 120);//WHITEPART2
- w.fillRect(275, 250, 80, 100);// WHITEbutSMOL
- w.fillRect(375, 250, 80, 100);// WHITEbutSMOL2
- w.fillRect(270, 425, 50, 30);//SMOLERWHITE
- w.fillRect(550, 50 ,50, 40);//SMOLERERWHITE
- w.fillRect(550, 100 ,50, 40);//SMOLERERWHITE1
- w.fillRect(550, 150 ,50, 40);//SMOLERERWHITE2
- w.fillRect(550, 200 ,50, 40);//SMOLERERWHITE3
- w.fillRect(550, 300 ,50, 40);//SMOLERERERWHITE
- w.fillRect(550, 350 ,50, 40);//SMOLERERERWHITE2
- w.fillRect(550, 415 ,50, 40);//SMOLERERERWHITE3
- w.setColor(black);
- w.setFont(SANS);
- w.drawString("Power Supply", 50, 50);
- w.drawString("Flash/SD",60, 270);
- w.drawString("DVD-Rw", 60, 320);
- w.drawString("Hard Disk",60, 370);
- w.drawString("Hard Disk",60, 420);
- w.drawString("BIOS ROM",285, 80);
- w.drawString("Central" ,295, 120 );
- w.drawString("Processing", 295, 140);
- w.drawString("Unit", 295, 160);
- w.drawString("RAM",285,290);
- w.drawString("RAM",385,290);
- w.drawString("System Unit", 50, 170);
- w.drawString("Motherboard", 285, 400);
- Font SANS1 = new Font ("Comic sans",1, 10);
- w.setFont(SANS1);
- w.drawString("Disc Interface", 270, 445);
- w.drawString("USB Interface", 550, 70);
- w.drawString("USB Interface", 550, 120);
- w.drawString("USB Interface", 550, 170);
- w.drawString("USB Interface", 550, 220);
- w.drawString("Graphical Interface", 550, 320);
- w.drawString("Audio Interface", 550, 370);
- w.drawString("Network Interface", 550, 420);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement