SlideShare a Scribd company logo
1 of 5
Npm : 201243501190
Nama : Reza Fahlevi
Kelas : R7H
Mata Kuliah : Komputer Grafik
Dosen : Nahot Frastian , M.Kom
Program Studi : Teknik Informatika
Universitas : Universitas Indraprasta Pgri
Program Komputer Grafik :
- Program Uts
Input :
import java.awt.Graphics ;
import java.awt.Color;
public class uts extends java.applet.Applet {
private static Color abu = new Color (204,204,204) ;
private static Color abu2 = new Color (153,153,153);
private static Color pink = new Color (255,51,51) ;
private static Color biru = new Color (51,51,255);
private static Color pink2 = new Color (255,0,102) ;
public void paint ( Graphics g ) {
setBackground ( Color.black ) ;
// ini buat line
g.setColor ( Color.yellow );
g.drawLine (0,180,100,0);
g.drawString ( " Line 2D " ,20,200);
g.setColor ( Color.blue );
g.fillRect ( 110,0,150,180 ) ;
g.drawString ( " fillRectangLe2D " ,110,200);
g.setColor ( Color.green );
g.drawRoundRect ( 280,0,150,180,10,10 ) ;
g.drawString ( " RoundRectangLe2D " ,280,200);
g.setColor ( Color.yellow ) ;
g.drawArc ( 450,0,150,180,70,200 ) ;
g.drawString ( "Arc2D " , 480,200 ) ;
g.setColor ( abu );
g.fillOval ( 620,0,150,180 ) ;
g.drawString ( " filledElipse2D " ,640,200);
g.setColor ( Color.blue );
g.drawRect ( 0,230,100,180 ) ;
g.drawString ( " RectangLe2D " ,10,430);
g.setColor ( Color.yellow );
g.fillRect ( 110,230,150,180 ) ;
g.drawString ( " fillRectangLe2D " ,110,430);
g.setColor ( abu2 );
g.fillArc ( 280,230,150,180,65,-285 ) ;
g.drawString ( " fillArc2D " ,300,430);
g.setColor ( pink );
g.drawArc ( 450,230,150,180,0,245 ) ;
g.drawLine ( 493,400,600,320);
g.drawString ( " Arc2D " ,480,430);
g.setColor ( biru );
g.drawOval ( 620,230,150,180 ) ;
g.setColor ( pink2 ) ;
g.fillOval ( 622,232,148,178);
g.drawString ( " filledElipse2D " ,640,430);
}
}
Proses :
 drawString : kordinat x nya : 0 dan kordinat Y nya :50 , sedangkan kata String
nya : Java Graphics Basic
 drawLine nya : kordinat x1 nya 5 , x2 nya = 150 , y1 = 100 , y2 = 250
 Lalu warna yang di gunakan adalah warna merah ( setColor )
 drawRect : kordinat x1 nya 50 , x2 nya = 150 , y1 = 100 , y2 = 250
 drawRoundRect x1 = 50 ,int y = 150 , int width = 150 , int height = 250 , int
xdiam=6 , int ydiam = 12
 drawOval : kordinat x1 nya 150 , x2 nya = 250 , y1 = 100 , y2 = 55
 drawArc x1 = 50 ,int y = 100 , int width = 150 , int height = 275 , int
statangle=95 , int arcangle = 15
Output :

More Related Content

What's hot

Program of bar 3 d
Program of bar 3 dProgram of bar 3 d
Program of bar 3 dsonamr123
 
Translating Linear Functions "I AM" Answer Key!
Translating Linear Functions "I AM" Answer Key!Translating Linear Functions "I AM" Answer Key!
Translating Linear Functions "I AM" Answer Key!Deborah_Johnson
 
Pattern printing-in-c(Jaydip Kikani)
Pattern printing-in-c(Jaydip Kikani)Pattern printing-in-c(Jaydip Kikani)
Pattern printing-in-c(Jaydip Kikani)Jaydip JK
 
Alg 2 : multiply ing & factoring
Alg 2 : multiply ing & factoringAlg 2 : multiply ing & factoring
Alg 2 : multiply ing & factoringpaksukur
 
Dip 5 mathematical preliminaries
Dip 5 mathematical preliminariesDip 5 mathematical preliminaries
Dip 5 mathematical preliminariesManas Mantri
 
Prelim exam algebra
Prelim exam   algebraPrelim exam   algebra
Prelim exam algebraDanny Albay
 
Array matrix example programs - C language
Array matrix example programs - C languageArray matrix example programs - C language
Array matrix example programs - C languageSk_Group
 
C- Programs - Harsh
C- Programs - HarshC- Programs - Harsh
C- Programs - HarshHarsh Sharma
 
Microsoft Word Hw#1
Microsoft Word   Hw#1Microsoft Word   Hw#1
Microsoft Word Hw#1kkkseld
 
analog clock C#
analog clock C#analog clock C#
analog clock C#omeed
 
1 fichas refuerzo operaciones combinadas numeros
1 fichas refuerzo operaciones combinadas numeros1 fichas refuerzo operaciones combinadas numeros
1 fichas refuerzo operaciones combinadas numerosBea Marfer
 
Midterm cpp q_a_may_2014(2)
Midterm cpp q_a_may_2014(2)Midterm cpp q_a_may_2014(2)
Midterm cpp q_a_may_2014(2)Mzr Zia
 
Ruby Basics by Rafiq
Ruby Basics by RafiqRuby Basics by Rafiq
Ruby Basics by RafiqRafiqdeen
 
Computer Graphics Lab
Computer Graphics LabComputer Graphics Lab
Computer Graphics LabNeil Mathew
 
Number theory - Prime Numbers & GCD Algorithms
Number theory - Prime Numbers & GCD AlgorithmsNumber theory - Prime Numbers & GCD Algorithms
Number theory - Prime Numbers & GCD AlgorithmsPratik Gadhiya
 

What's hot (20)

Program of bar 3 d
Program of bar 3 dProgram of bar 3 d
Program of bar 3 d
 
Basis grafik
Basis grafikBasis grafik
Basis grafik
 
Translating Linear Functions "I AM" Answer Key!
Translating Linear Functions "I AM" Answer Key!Translating Linear Functions "I AM" Answer Key!
Translating Linear Functions "I AM" Answer Key!
 
Pattern printing-in-c(Jaydip Kikani)
Pattern printing-in-c(Jaydip Kikani)Pattern printing-in-c(Jaydip Kikani)
Pattern printing-in-c(Jaydip Kikani)
 
Alg 2 : multiply ing & factoring
Alg 2 : multiply ing & factoringAlg 2 : multiply ing & factoring
Alg 2 : multiply ing & factoring
 
Dip 5 mathematical preliminaries
Dip 5 mathematical preliminariesDip 5 mathematical preliminaries
Dip 5 mathematical preliminaries
 
Rl2
Rl2Rl2
Rl2
 
Prelim exam algebra
Prelim exam   algebraPrelim exam   algebra
Prelim exam algebra
 
Array matrix example programs - C language
Array matrix example programs - C languageArray matrix example programs - C language
Array matrix example programs - C language
 
C- Programs - Harsh
C- Programs - HarshC- Programs - Harsh
C- Programs - Harsh
 
Quiz 10 cp_sol
Quiz 10 cp_solQuiz 10 cp_sol
Quiz 10 cp_sol
 
Microsoft Word Hw#1
Microsoft Word   Hw#1Microsoft Word   Hw#1
Microsoft Word Hw#1
 
analog clock C#
analog clock C#analog clock C#
analog clock C#
 
Warna rgb
Warna rgbWarna rgb
Warna rgb
 
1 fichas refuerzo operaciones combinadas numeros
1 fichas refuerzo operaciones combinadas numeros1 fichas refuerzo operaciones combinadas numeros
1 fichas refuerzo operaciones combinadas numeros
 
Midterm cpp q_a_may_2014(2)
Midterm cpp q_a_may_2014(2)Midterm cpp q_a_may_2014(2)
Midterm cpp q_a_may_2014(2)
 
Ruby Basics by Rafiq
Ruby Basics by RafiqRuby Basics by Rafiq
Ruby Basics by Rafiq
 
Computer Graphics Lab
Computer Graphics LabComputer Graphics Lab
Computer Graphics Lab
 
Number theory - Prime Numbers & GCD Algorithms
Number theory - Prime Numbers & GCD AlgorithmsNumber theory - Prime Numbers & GCD Algorithms
Number theory - Prime Numbers & GCD Algorithms
 
Parentesi
ParentesiParentesi
Parentesi
 

Viewers also liked (20)

Soalno2
Soalno2Soalno2
Soalno2
 
Satutitikhilang
SatutitikhilangSatutitikhilang
Satutitikhilang
 
Warnargb
WarnargbWarnargb
Warnargb
 
Makalah komgraf
Makalah komgrafMakalah komgraf
Makalah komgraf
 
Lamp
LampLamp
Lamp
 
PPT Komgraf
PPT KomgrafPPT Komgraf
PPT Komgraf
 
My ovalsetengah
My ovalsetengahMy ovalsetengah
My ovalsetengah
 
My poly
My polyMy poly
My poly
 
Line
LineLine
Line
 
Grafik garis
Grafik garisGrafik garis
Grafik garis
 
Rumah
RumahRumah
Rumah
 
Komputer grafik 1
Komputer grafik 1Komputer grafik 1
Komputer grafik 1
 
Tugas
TugasTugas
Tugas
 
Grafik batang
Grafik batangGrafik batang
Grafik batang
 
Hafitz_Rizki 201343500823 JMenuBar_JavaMsAccess_JavaGrade
Hafitz_Rizki 201343500823 JMenuBar_JavaMsAccess_JavaGradeHafitz_Rizki 201343500823 JMenuBar_JavaMsAccess_JavaGrade
Hafitz_Rizki 201343500823 JMenuBar_JavaMsAccess_JavaGrade
 
Segiempat
SegiempatSegiempat
Segiempat
 
Tugas no 2
Tugas no 2Tugas no 2
Tugas no 2
 
Soal2
Soal2Soal2
Soal2
 
Grafik
GrafikGrafik
Grafik
 
Myoval1
Myoval1Myoval1
Myoval1
 

Similar to Uts

Similar to Uts (20)

Kuis 1 b
Kuis 1 bKuis 1 b
Kuis 1 b
 
bfd23fd7-0d89-45c0-8b82-c991b30ed375.pdf
bfd23fd7-0d89-45c0-8b82-c991b30ed375.pdfbfd23fd7-0d89-45c0-8b82-c991b30ed375.pdf
bfd23fd7-0d89-45c0-8b82-c991b30ed375.pdf
 
Computer graphics lab manual
Computer graphics lab manualComputer graphics lab manual
Computer graphics lab manual
 
Graphics in C++
Graphics in C++Graphics in C++
Graphics in C++
 
Applet life cycle
Applet life cycleApplet life cycle
Applet life cycle
 
Introduction to graphics programming in c
Introduction to graphics programming in cIntroduction to graphics programming in c
Introduction to graphics programming in c
 
Programa expresiones regulares
Programa expresiones regularesPrograma expresiones regulares
Programa expresiones regulares
 
Clock For My
Clock For MyClock For My
Clock For My
 
Computer graphics lab assignment
Computer graphics lab assignmentComputer graphics lab assignment
Computer graphics lab assignment
 
Circles graphic
Circles graphicCircles graphic
Circles graphic
 
You are task to add a yawning detection to the programme below;i.pdf
You are task to add a yawning detection to the programme below;i.pdfYou are task to add a yawning detection to the programme below;i.pdf
You are task to add a yawning detection to the programme below;i.pdf
 
Computer graphics practical(jainam)
Computer graphics practical(jainam)Computer graphics practical(jainam)
Computer graphics practical(jainam)
 
C programs Set 2
C programs Set 2C programs Set 2
C programs Set 2
 
Computer graphics
Computer graphics   Computer graphics
Computer graphics
 
Computer graphics
Computer graphics   Computer graphics
Computer graphics
 
FSOFT - Test Java Exam
FSOFT - Test Java ExamFSOFT - Test Java Exam
FSOFT - Test Java Exam
 
Lec 7 28_aug [compatibility mode]
Lec 7 28_aug [compatibility mode]Lec 7 28_aug [compatibility mode]
Lec 7 28_aug [compatibility mode]
 
java graphics
java graphicsjava graphics
java graphics
 
Processing and Processing.js
Processing and Processing.jsProcessing and Processing.js
Processing and Processing.js
 
COMPUTER GRAPHICS LAB MANUAL
COMPUTER GRAPHICS LAB MANUALCOMPUTER GRAPHICS LAB MANUAL
COMPUTER GRAPHICS LAB MANUAL
 

More from fahlevizha (20)

Aplikasi program komputer grafik
Aplikasi program komputer grafikAplikasi program komputer grafik
Aplikasi program komputer grafik
 
My line2d
My line2dMy line2d
My line2d
 
Font1
Font1Font1
Font1
 
Font
FontFont
Font
 
Tugas no 1 b
Tugas no 1 bTugas no 1 b
Tugas no 1 b
 
Tugas no 1 a
Tugas no 1 aTugas no 1 a
Tugas no 1 a
 
String rect warna
String rect warnaString rect warna
String rect warna
 
String dan rect
String dan rectString dan rect
String dan rect
 
Segiempat1
Segiempat1Segiempat1
Segiempat1
 
Segiempat
SegiempatSegiempat
Segiempat
 
Rumah
RumahRumah
Rumah
 
Rect
RectRect
Rect
 
Oval , string , line
Oval , string , lineOval , string , line
Oval , string , line
 
My ovalsetengah
My ovalsetengahMy ovalsetengah
My ovalsetengah
 
My ovalacak
My ovalacakMy ovalacak
My ovalacak
 
Myoval
MyovalMyoval
Myoval
 
Myline
MylineMyline
Myline
 
Line
LineLine
Line
 
Lamp
LampLamp
Lamp
 
Kotak3d
Kotak3dKotak3d
Kotak3d
 

Recently uploaded

Grant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy ConsultingGrant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy ConsultingTechSoup
 
Key note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdfKey note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdfAdmir Softic
 
Seal of Good Local Governance (SGLG) 2024Final.pptx
Seal of Good Local Governance (SGLG) 2024Final.pptxSeal of Good Local Governance (SGLG) 2024Final.pptx
Seal of Good Local Governance (SGLG) 2024Final.pptxnegromaestrong
 
Gardella_Mateo_IntellectualProperty.pdf.
Gardella_Mateo_IntellectualProperty.pdf.Gardella_Mateo_IntellectualProperty.pdf.
Gardella_Mateo_IntellectualProperty.pdf.MateoGardella
 
1029-Danh muc Sach Giao Khoa khoi 6.pdf
1029-Danh muc Sach Giao Khoa khoi  6.pdf1029-Danh muc Sach Giao Khoa khoi  6.pdf
1029-Danh muc Sach Giao Khoa khoi 6.pdfQucHHunhnh
 
ICT Role in 21st Century Education & its Challenges.pptx
ICT Role in 21st Century Education & its Challenges.pptxICT Role in 21st Century Education & its Challenges.pptx
ICT Role in 21st Century Education & its Challenges.pptxAreebaZafar22
 
Sports & Fitness Value Added Course FY..
Sports & Fitness Value Added Course FY..Sports & Fitness Value Added Course FY..
Sports & Fitness Value Added Course FY..Disha Kariya
 
microwave assisted reaction. General introduction
microwave assisted reaction. General introductionmicrowave assisted reaction. General introduction
microwave assisted reaction. General introductionMaksud Ahmed
 
Introduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The BasicsIntroduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The BasicsTechSoup
 
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...christianmathematics
 
1029 - Danh muc Sach Giao Khoa 10 . pdf
1029 -  Danh muc Sach Giao Khoa 10 . pdf1029 -  Danh muc Sach Giao Khoa 10 . pdf
1029 - Danh muc Sach Giao Khoa 10 . pdfQucHHunhnh
 
Class 11th Physics NEET formula sheet pdf
Class 11th Physics NEET formula sheet pdfClass 11th Physics NEET formula sheet pdf
Class 11th Physics NEET formula sheet pdfAyushMahapatra5
 
PROCESS RECORDING FORMAT.docx
PROCESS      RECORDING        FORMAT.docxPROCESS      RECORDING        FORMAT.docx
PROCESS RECORDING FORMAT.docxPoojaSen20
 
Measures of Dispersion and Variability: Range, QD, AD and SD
Measures of Dispersion and Variability: Range, QD, AD and SDMeasures of Dispersion and Variability: Range, QD, AD and SD
Measures of Dispersion and Variability: Range, QD, AD and SDThiyagu K
 
Paris 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityParis 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityGeoBlogs
 
The basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxThe basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxheathfieldcps1
 
Unit-IV- Pharma. Marketing Channels.pptx
Unit-IV- Pharma. Marketing Channels.pptxUnit-IV- Pharma. Marketing Channels.pptx
Unit-IV- Pharma. Marketing Channels.pptxVishalSingh1417
 

Recently uploaded (20)

Grant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy ConsultingGrant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy Consulting
 
Key note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdfKey note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdf
 
Seal of Good Local Governance (SGLG) 2024Final.pptx
Seal of Good Local Governance (SGLG) 2024Final.pptxSeal of Good Local Governance (SGLG) 2024Final.pptx
Seal of Good Local Governance (SGLG) 2024Final.pptx
 
Gardella_Mateo_IntellectualProperty.pdf.
Gardella_Mateo_IntellectualProperty.pdf.Gardella_Mateo_IntellectualProperty.pdf.
Gardella_Mateo_IntellectualProperty.pdf.
 
1029-Danh muc Sach Giao Khoa khoi 6.pdf
1029-Danh muc Sach Giao Khoa khoi  6.pdf1029-Danh muc Sach Giao Khoa khoi  6.pdf
1029-Danh muc Sach Giao Khoa khoi 6.pdf
 
Advance Mobile Application Development class 07
Advance Mobile Application Development class 07Advance Mobile Application Development class 07
Advance Mobile Application Development class 07
 
ICT Role in 21st Century Education & its Challenges.pptx
ICT Role in 21st Century Education & its Challenges.pptxICT Role in 21st Century Education & its Challenges.pptx
ICT Role in 21st Century Education & its Challenges.pptx
 
Sports & Fitness Value Added Course FY..
Sports & Fitness Value Added Course FY..Sports & Fitness Value Added Course FY..
Sports & Fitness Value Added Course FY..
 
microwave assisted reaction. General introduction
microwave assisted reaction. General introductionmicrowave assisted reaction. General introduction
microwave assisted reaction. General introduction
 
Introduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The BasicsIntroduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The Basics
 
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
 
1029 - Danh muc Sach Giao Khoa 10 . pdf
1029 -  Danh muc Sach Giao Khoa 10 . pdf1029 -  Danh muc Sach Giao Khoa 10 . pdf
1029 - Danh muc Sach Giao Khoa 10 . pdf
 
Código Creativo y Arte de Software | Unidad 1
Código Creativo y Arte de Software | Unidad 1Código Creativo y Arte de Software | Unidad 1
Código Creativo y Arte de Software | Unidad 1
 
Class 11th Physics NEET formula sheet pdf
Class 11th Physics NEET formula sheet pdfClass 11th Physics NEET formula sheet pdf
Class 11th Physics NEET formula sheet pdf
 
PROCESS RECORDING FORMAT.docx
PROCESS      RECORDING        FORMAT.docxPROCESS      RECORDING        FORMAT.docx
PROCESS RECORDING FORMAT.docx
 
Measures of Dispersion and Variability: Range, QD, AD and SD
Measures of Dispersion and Variability: Range, QD, AD and SDMeasures of Dispersion and Variability: Range, QD, AD and SD
Measures of Dispersion and Variability: Range, QD, AD and SD
 
Paris 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityParis 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activity
 
INDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptx
INDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptxINDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptx
INDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptx
 
The basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxThe basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptx
 
Unit-IV- Pharma. Marketing Channels.pptx
Unit-IV- Pharma. Marketing Channels.pptxUnit-IV- Pharma. Marketing Channels.pptx
Unit-IV- Pharma. Marketing Channels.pptx
 

Uts

  • 1. Npm : 201243501190 Nama : Reza Fahlevi Kelas : R7H Mata Kuliah : Komputer Grafik Dosen : Nahot Frastian , M.Kom Program Studi : Teknik Informatika Universitas : Universitas Indraprasta Pgri
  • 2. Program Komputer Grafik : - Program Uts Input : import java.awt.Graphics ; import java.awt.Color; public class uts extends java.applet.Applet { private static Color abu = new Color (204,204,204) ; private static Color abu2 = new Color (153,153,153); private static Color pink = new Color (255,51,51) ; private static Color biru = new Color (51,51,255); private static Color pink2 = new Color (255,0,102) ; public void paint ( Graphics g ) { setBackground ( Color.black ) ; // ini buat line g.setColor ( Color.yellow ); g.drawLine (0,180,100,0); g.drawString ( " Line 2D " ,20,200); g.setColor ( Color.blue ); g.fillRect ( 110,0,150,180 ) ; g.drawString ( " fillRectangLe2D " ,110,200); g.setColor ( Color.green ); g.drawRoundRect ( 280,0,150,180,10,10 ) ; g.drawString ( " RoundRectangLe2D " ,280,200); g.setColor ( Color.yellow ) ; g.drawArc ( 450,0,150,180,70,200 ) ; g.drawString ( "Arc2D " , 480,200 ) ; g.setColor ( abu ); g.fillOval ( 620,0,150,180 ) ; g.drawString ( " filledElipse2D " ,640,200); g.setColor ( Color.blue ); g.drawRect ( 0,230,100,180 ) ; g.drawString ( " RectangLe2D " ,10,430);
  • 3. g.setColor ( Color.yellow ); g.fillRect ( 110,230,150,180 ) ; g.drawString ( " fillRectangLe2D " ,110,430); g.setColor ( abu2 ); g.fillArc ( 280,230,150,180,65,-285 ) ; g.drawString ( " fillArc2D " ,300,430); g.setColor ( pink ); g.drawArc ( 450,230,150,180,0,245 ) ; g.drawLine ( 493,400,600,320); g.drawString ( " Arc2D " ,480,430); g.setColor ( biru ); g.drawOval ( 620,230,150,180 ) ; g.setColor ( pink2 ) ; g.fillOval ( 622,232,148,178); g.drawString ( " filledElipse2D " ,640,430); } }
  • 4. Proses :  drawString : kordinat x nya : 0 dan kordinat Y nya :50 , sedangkan kata String nya : Java Graphics Basic  drawLine nya : kordinat x1 nya 5 , x2 nya = 150 , y1 = 100 , y2 = 250  Lalu warna yang di gunakan adalah warna merah ( setColor )  drawRect : kordinat x1 nya 50 , x2 nya = 150 , y1 = 100 , y2 = 250  drawRoundRect x1 = 50 ,int y = 150 , int width = 150 , int height = 250 , int xdiam=6 , int ydiam = 12  drawOval : kordinat x1 nya 150 , x2 nya = 250 , y1 = 100 , y2 = 55  drawArc x1 = 50 ,int y = 100 , int width = 150 , int height = 275 , int statangle=95 , int arcangle = 15