SHARE
TWEET

Untitled

a guest Feb 26th, 2020 73 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. import graphics.*;
  2. import java.awt.Color;
  3. import java.awt.Font;
  4.  
  5. public class Graphics {
  6.    
  7.  
  8.  
  9.     public static void main(String[] args) {
  10.        
  11.        
  12.         Window w = new Window ();
  13.          Color red = new Color (255,100,100);
  14.          w.setColor(red);
  15.          Color black = new Color (0,0,25);
  16.          Color white = new Color (255,255,255);
  17.          Color notWhite = new Color(205,205,205);
  18.          Font SANS = new Font ("Comic sans" , 1 ,15);
  19.  
  20. w.fillRect(0, 0, 650, 500);//RED
  21. w.setColor(black);
  22. w.fillRect(48, 248, 95 ,45 );//MOREDETAIL
  23. w.fillRect(48, 298, 95 ,45 );//MOREDETAIL
  24. w.fillRect(48, 348, 95 ,45 );//MOREDETAIL
  25. w.fillRect(48, 398, 95 ,45 );//MOREDETAIL
  26. w.fillRect(273, 48, 185, 45);//MORERDETAIL
  27. w.setColor(black);
  28. w.fillRect(250, 25, 375, 450);//BEG BLACK BOX
  29. w.setColor(notWhite);
  30. w.fillRect(255, 30, 365, 440);//DETAIL
  31. w.setColor(black);
  32. w.fillRect(273, 48, 185, 45);//MOREERDETAIL
  33. w.fillRect(273, 98, 185, 125);//MOREERDETAIL
  34. w.fillRect(273, 248, 84, 104);//MOREERDETAIL
  35. w.fillRect(373, 248, 84, 104);//MOREERDETAIL
  36. w.fillRect(269, 424, 52, 32);//MOREERDETAIL
  37. w.fillRect(549, 49 ,52, 42);//MOREERDETAIL
  38. w.fillRect(549, 99 ,52, 42);//MOREERDETAIL
  39. w.fillRect(549, 149 ,52, 42);//MOREERDETAIL
  40. w.fillRect(549, 199 ,52, 42);//MOREERDETAIL
  41. w.fillRect(549, 299 ,52, 42);//MOREERDETAIL
  42. w.fillRect(549, 349 ,52, 42);//MOREERDETAIL
  43. w.fillRect(549, 414 ,52, 42);//MOREERDETAIL
  44. w.fillRect(48, 28, 104, 104);//MOREERDETAIL
  45. w.setColor(white);
  46. w.fillRect(50, 30, 100, 100);//SMOL BOX
  47. w.fillRect(50, 250, 90 ,40 );//SMOL RECTANGLE 1
  48. w.fillRect(50, 300, 90 ,40 );//SMOL RECTANGLE 2
  49. w.fillRect(50, 350, 90 ,40 );//SMOL RECTANGLE 3
  50. w.fillRect(50, 400, 90 ,40 );//SMOL RECTANGLE 4
  51. w.fillRect(275, 50, 180, 40);//WHITE
  52. w.fillRect(275, 100, 180, 120);//WHITEPART2
  53. w.fillRect(275, 250, 80, 100);// WHITEbutSMOL
  54. w.fillRect(375, 250, 80, 100);// WHITEbutSMOL2
  55. w.fillRect(270, 425, 50, 30);//SMOLERWHITE
  56. w.fillRect(550, 50 ,50, 40);//SMOLERERWHITE
  57. w.fillRect(550, 100 ,50, 40);//SMOLERERWHITE1
  58. w.fillRect(550, 150 ,50, 40);//SMOLERERWHITE2
  59. w.fillRect(550, 200 ,50, 40);//SMOLERERWHITE3
  60. w.fillRect(550, 300 ,50, 40);//SMOLERERERWHITE
  61. w.fillRect(550, 350 ,50, 40);//SMOLERERERWHITE2
  62. w.fillRect(550, 415 ,50, 40);//SMOLERERERWHITE3
  63. w.setColor(black);
  64. w.setFont(SANS);
  65. w.drawString("Power Supply", 50, 50);
  66. w.drawString("Flash/SD",60, 270);
  67. w.drawString("DVD-Rw", 60, 320);
  68. w.drawString("Hard Disk",60, 370);
  69. w.drawString("Hard Disk",60, 420);
  70. w.drawString("BIOS ROM",285, 80);
  71. w.drawString("Central" ,295, 120 );
  72. w.drawString("Processing", 295, 140);
  73. w.drawString("Unit", 295, 160);
  74. w.drawString("RAM",285,290);
  75. w.drawString("RAM",385,290);
  76. w.drawString("System Unit", 50, 170);
  77. w.drawString("Motherboard", 285, 400);
  78.         Font SANS1 = new Font ("Comic sans",1, 10);
  79. w.setFont(SANS1);
  80. w.drawString("Disc Interface", 270, 445);
  81. w.drawString("USB Interface", 550, 70);
  82. w.drawString("USB Interface", 550, 120);
  83. w.drawString("USB Interface", 550, 170);
  84. w.drawString("USB Interface", 550, 220);
  85. w.drawString("Graphical Interface", 550, 320);
  86. w.drawString("Audio Interface", 550, 370);
  87. w.drawString("Network Interface", 550, 420);
  88.     }
  89.  
  90. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Top