SlideShare a Scribd company logo
import java.awt.Graphics;
import java.awt.Graphics2D;
import java.awt.Rectangle;
import javax.swing.JPanel;
import javax.swing.JComponent;
import java.awt.*;
import java.awt.geom.*;
/**
* Creating a gameboy pocket.
*
* @author (Samuel MacArthur)
* @version (September 29 2014)
*/
public class IDKR extends JComponent
{
public void paintComponent(Graphics g)
{
//Recover Graphics 2d
Graphics2D g2 = (Graphics2D) g;
// Drawing the background black.
Rectangle box3 = new Rectangle(0, 0, 900, 600);
g2.setColor(Color.WHITE);
g2.fill(box3);
// Creating blue back of the gameboy
Rectangle box = new Rectangle(200, 200, 200, 300);
g2.draw(box);
g2.setColor(Color.BLUE);
g2.fill(box);
// creating the black background on the gameboy.
Rectangle box1 = new Rectangle(230, 210, 140, 120);
g2.setColor(Color.BLACK);
g2.fill(box1);
// creating the screen for the gameboy.
Rectangle box2 = new Rectangle(252, 220, 95, 95);
g2.setColor(Color.GREEN);
g2.fill(box2);
// creating the words "Gameboy pocket" on the gameboy.
g.setColor(Color.WHITE);
g.drawString("Gameboy pocket", 245, 328);
// creating the two red buttons on the gamboy
Ellipse2D.Double circle = new Ellipse2D.Double(350, 372, 20,
20);
g2.setColor(Color.RED);
g2.fill(circle);
Ellipse2D.Double circle1 = new Ellipse2D.Double(325, 387, 20,
20);
g2.setColor(Color.RED);
g2.fill(circle1);
//Creating the d-pad on the gameboy.
Rectangle box4 = new Rectangle(240, 370, 10, 30);
g2.setColor(Color.BLACK);
g2.fill(box4);
Rectangle box5 = new Rectangle(230, 380, 30, 10);
g2.setColor(Color.BLACK);
g2.fill(box5);
//Creating the select and start buttons on the gameboy.
Stroke stroke = new BasicStroke(5.0f, BasicStroke.CAP_ROUND,
BasicStroke.JOIN_ROUND);
g2.setStroke(stroke);
Line2D.Double line = new Line2D.Double(280, 440, 300, 440);
g2.draw(line);
Line2D.Double line2 = new Line2D.Double(310, 440, 330, 440);
g2.draw(line2);
// Naming the select and start buttons.
g.drawString("select", 265, 460);
g.drawString("start", 307, 460);
g.drawString("A", 358, 407);
g.drawString("B", 332, 422);
// Creating the area where the sound comes out with many
circles.
Ellipse2D.Double circle89 = new Ellipse2D.Double(389, 480, 5,
5);
g2.setColor(Color.BLACK);
g2.fill(circle89);
Ellipse2D.Double circle90 = new Ellipse2D.Double(389, 472, 5,
5);
g2.setColor(Color.GRAY);
g2.fill(circle90);
Ellipse2D.Double circle91 = new Ellipse2D.Double(371, 472, 5,
5);
g2.setColor(Color.GRAY);
g2.fill(circle91);
Ellipse2D.Double circle92 = new Ellipse2D.Double(371, 480, 5,
5);
g2.setColor(Color.BLACK);
g2.fill(circle92);
Ellipse2D.Double circle93 = new Ellipse2D.Double(371, 488, 5,
5);
g2.setColor(Color.GRAY);
g2.fill(circle93);
Ellipse2D.Double circle8 = new Ellipse2D.Double(380, 488, 5,
5);
g2.setColor(Color.BLACK);
g2.fill(circle8);
Ellipse2D.Double circle30 = new Ellipse2D.Double(380, 480, 5,
5);
g2.setColor(Color.GRAY);
g2.fill(circle30);
Ellipse2D.Double circle31 = new Ellipse2D.Double(380, 472, 5,
5);
g2.setColor(Color.BLACK);
g2.fill(circle31);
Ellipse2D.Double circle9 = new Ellipse2D.Double(371, 488, 5,
5);
g2.setColor(Color.BLACK);
g2.fill(circle9);
Ellipse2D.Double circle10 = new Ellipse2D.Double(371, 488, 5,
5);
g2.setColor(Color.GRAY);
g2.fill(circle10);
Ellipse2D.Double circle11 = new Ellipse2D.Double(360, 488, 5,
5);
g2.setColor(Color.BLACK);
g2.fill(circle11);
Ellipse2D.Double circle20 = new Ellipse2D.Double(360, 480, 5,
5);
g2.setColor(Color.GRAY);
g2.fill(circle20);
Ellipse2D.Double circle21 = new Ellipse2D.Double(360, 472, 5,
5);
g2.setColor(Color.BLACK);
g2.fill(circle21);
Ellipse2D.Double circle22 = new Ellipse2D.Double(360, 466, 5,
5);
g2.setColor(Color.GRAY);
g2.fill(circle22);
Ellipse2D.Double circle23 = new Ellipse2D.Double(371, 466, 5,
5);
g2.setColor(Color.GRAY);
g2.fill(circle23);
Ellipse2D.Double circle24 = new Ellipse2D.Double(382, 466, 5,
5);
g2.setColor(Color.GRAY);
g2.fill(circle24);
Ellipse2D.Double circle12 = new Ellipse2D.Double(349, 488, 5,
5);
g2.setColor(Color.GRAY);
g2.fill(circle12);
Ellipse2D.Double circle13 = new Ellipse2D.Double(349, 480, 5,
5);
g2.setColor(Color.BLACK);
g2.fill(circle13);
Ellipse2D.Double circle14 = new Ellipse2D.Double(349, 472, 5,
5);
g2.setColor(Color.GRAY);
g2.fill(circle14);
Ellipse2D.Double circle17 = new Ellipse2D.Double(360, 466, 5,
5);
g2.setColor(Color.GRAY);
g2.fill(circle17);
Ellipse2D.Double circle16 = new Ellipse2D.Double(371, 466, 5,
5);
g2.setColor(Color.BLACK);
g2.fill(circle16);
Ellipse2D.Double circle18 = new Ellipse2D.Double(382, 466, 5,
5);
g2.setColor(Color.GRAY);
g2.fill(circle18);
Ellipse2D.Double circle19 = new Ellipse2D.Double(389, 466, 5,
5);
g2.setColor(Color.BLACK);
g2.fill(circle19);
}
}

More Related Content

What's hot

Programming meeting #8
Programming meeting #8Programming meeting #8
Programming meeting #8
Hideyuki Tabata
 
Algoritmo da adição
Algoritmo da adiçãoAlgoritmo da adição
Algoritmo da adição
Crescendo EAprendendo
 
การสอนเรื่อง การแยกตัวประกอบฯ
การสอนเรื่อง การแยกตัวประกอบฯการสอนเรื่อง การแยกตัวประกอบฯ
การสอนเรื่อง การแยกตัวประกอบฯ
Krukomnuan
 
Human-powered Javascript Compression for Fun and Gummy Bears
Human-powered Javascript Compression for Fun and Gummy BearsHuman-powered Javascript Compression for Fun and Gummy Bears
Human-powered Javascript Compression for Fun and Gummy Bears
Rui Lopes
 
4-Cm7
4-Cm74-Cm7
4-Cm7
mathome79
 
Teoria y problemas de conteo de triangulos ct12 ccesa007
Teoria y problemas de conteo de triangulos ct12  ccesa007Teoria y problemas de conteo de triangulos ct12  ccesa007
Teoria y problemas de conteo de triangulos ct12 ccesa007
Demetrio Ccesa Rayme
 
Good Ideas in Programming Languages
Good Ideas in Programming LanguagesGood Ideas in Programming Languages
Good Ideas in Programming Languages
Dmitri Nesteruk
 
Tablas integrales
Tablas integralesTablas integrales
Tablas integrales
Paulo0415
 
Integrales
IntegralesIntegrales
Integrales
christian987654321
 

What's hot (9)

Programming meeting #8
Programming meeting #8Programming meeting #8
Programming meeting #8
 
Algoritmo da adição
Algoritmo da adiçãoAlgoritmo da adição
Algoritmo da adição
 
การสอนเรื่อง การแยกตัวประกอบฯ
การสอนเรื่อง การแยกตัวประกอบฯการสอนเรื่อง การแยกตัวประกอบฯ
การสอนเรื่อง การแยกตัวประกอบฯ
 
Human-powered Javascript Compression for Fun and Gummy Bears
Human-powered Javascript Compression for Fun and Gummy BearsHuman-powered Javascript Compression for Fun and Gummy Bears
Human-powered Javascript Compression for Fun and Gummy Bears
 
4-Cm7
4-Cm74-Cm7
4-Cm7
 
Teoria y problemas de conteo de triangulos ct12 ccesa007
Teoria y problemas de conteo de triangulos ct12  ccesa007Teoria y problemas de conteo de triangulos ct12  ccesa007
Teoria y problemas de conteo de triangulos ct12 ccesa007
 
Good Ideas in Programming Languages
Good Ideas in Programming LanguagesGood Ideas in Programming Languages
Good Ideas in Programming Languages
 
Tablas integrales
Tablas integralesTablas integrales
Tablas integrales
 
Integrales
IntegralesIntegrales
Integrales
 

Viewers also liked

Presentación1
Presentación1Presentación1
Presentación1harold_7
 
Certificado como vender por telefone
Certificado  como vender por telefoneCertificado  como vender por telefone
Certificado como vender por telefone
Mônica Sobrenome
 
Transportation equipment
Transportation equipment Transportation equipment
Transportation equipment
Lapp India Pvt. Ltd.
 
NPIK DAN KOMPONENNYA MURAH
NPIK DAN KOMPONENNYA MURAHNPIK DAN KOMPONENNYA MURAH
NPIK DAN KOMPONENNYA MURAH
andri08121942042
 
El perfecto frankenstein costruyendo al cliente perfecto
El perfecto frankenstein costruyendo al cliente perfectoEl perfecto frankenstein costruyendo al cliente perfecto
El perfecto frankenstein costruyendo al cliente perfecto
Comunitea
 
Haurralde fundazioa
Haurralde fundazioaHaurralde fundazioa
Haurralde fundazioa
Irati Rincón
 
تصور لموقع المعلم المتدرب في مشروع الورد لينكس
تصور لموقع المعلم المتدرب في مشروع الورد لينكستصور لموقع المعلم المتدرب في مشروع الورد لينكس
تصور لموقع المعلم المتدرب في مشروع الورد لينكس
faresalqalam
 
2014 siset milano - pavesi - role of fresh frozen plasma, fibrinogen and pro...
2014 siset milano -  pavesi - role of fresh frozen plasma, fibrinogen and pro...2014 siset milano -  pavesi - role of fresh frozen plasma, fibrinogen and pro...
2014 siset milano - pavesi - role of fresh frozen plasma, fibrinogen and pro...
anemo_site
 
Bon Jovi
Bon JoviBon Jovi
Bon Jovi
lapega99
 
Digital i
Digital iDigital i
Digital i
alladvertising
 

Viewers also liked (10)

Presentación1
Presentación1Presentación1
Presentación1
 
Certificado como vender por telefone
Certificado  como vender por telefoneCertificado  como vender por telefone
Certificado como vender por telefone
 
Transportation equipment
Transportation equipment Transportation equipment
Transportation equipment
 
NPIK DAN KOMPONENNYA MURAH
NPIK DAN KOMPONENNYA MURAHNPIK DAN KOMPONENNYA MURAH
NPIK DAN KOMPONENNYA MURAH
 
El perfecto frankenstein costruyendo al cliente perfecto
El perfecto frankenstein costruyendo al cliente perfectoEl perfecto frankenstein costruyendo al cliente perfecto
El perfecto frankenstein costruyendo al cliente perfecto
 
Haurralde fundazioa
Haurralde fundazioaHaurralde fundazioa
Haurralde fundazioa
 
تصور لموقع المعلم المتدرب في مشروع الورد لينكس
تصور لموقع المعلم المتدرب في مشروع الورد لينكستصور لموقع المعلم المتدرب في مشروع الورد لينكس
تصور لموقع المعلم المتدرب في مشروع الورد لينكس
 
2014 siset milano - pavesi - role of fresh frozen plasma, fibrinogen and pro...
2014 siset milano -  pavesi - role of fresh frozen plasma, fibrinogen and pro...2014 siset milano -  pavesi - role of fresh frozen plasma, fibrinogen and pro...
2014 siset milano - pavesi - role of fresh frozen plasma, fibrinogen and pro...
 
Bon Jovi
Bon JoviBon Jovi
Bon Jovi
 
Digital i
Digital iDigital i
Digital i
 

Similar to import java

Clock For My
Clock For MyClock For My
Clock For My
shamalanamnam
 
draw a pikachu in java package arreyreview- import java-awt--- import.pdf
draw a pikachu in java package arreyreview- import java-awt--- import.pdfdraw a pikachu in java package arreyreview- import java-awt--- import.pdf
draw a pikachu in java package arreyreview- import java-awt--- import.pdf
Jake3sTAveryn
 
Lec 10 10_sept [compatibility mode]
Lec 10 10_sept [compatibility mode]Lec 10 10_sept [compatibility mode]
Lec 10 10_sept [compatibility mode]
Palak Sanghani
 
Lec 11 12_sept [compatibility mode]
Lec 11 12_sept [compatibility mode]Lec 11 12_sept [compatibility mode]
Lec 11 12_sept [compatibility mode]
Palak Sanghani
 
I need help on this 5 and 6. here is the code so far import jav.pdf
I need help on this 5 and 6. here is the code so far import jav.pdfI need help on this 5 and 6. here is the code so far import jav.pdf
I need help on this 5 and 6. here is the code so far import jav.pdf
mail931892
 
Lec 7 28_aug [compatibility mode]
Lec 7 28_aug [compatibility mode]Lec 7 28_aug [compatibility mode]
Lec 7 28_aug [compatibility mode]
Palak Sanghani
 
An Introduction to Tinkerpop
An Introduction to TinkerpopAn Introduction to Tinkerpop
An Introduction to Tinkerpop
Takahiro Inoue
 
bfd23fd7-0d89-45c0-8b82-c991b30ed375.pdf
bfd23fd7-0d89-45c0-8b82-c991b30ed375.pdfbfd23fd7-0d89-45c0-8b82-c991b30ed375.pdf
bfd23fd7-0d89-45c0-8b82-c991b30ed375.pdf
shehabhamad_90
 
Introduction to graphics programming in c
Introduction to graphics programming in cIntroduction to graphics programming in c
Introduction to graphics programming in c
baabtra.com - No. 1 supplier of quality freshers
 
This is Java,I am currently stumped on how to add a scoreboard for.pdf
This is Java,I am currently stumped on how to add a scoreboard for.pdfThis is Java,I am currently stumped on how to add a scoreboard for.pdf
This is Java,I am currently stumped on how to add a scoreboard for.pdf
anjandavid
 
PART 4: GEOGRAPHIC SCRIPTING
PART 4: GEOGRAPHIC SCRIPTINGPART 4: GEOGRAPHIC SCRIPTING
PART 4: GEOGRAPHIC SCRIPTING
Andrea Antonello
 
J slider
J sliderJ slider
J slider
Sesum Dragomir
 
Need help with questions 2-4. Write assembly code to find absolute v.pdf
Need help with questions 2-4. Write assembly code to find absolute v.pdfNeed help with questions 2-4. Write assembly code to find absolute v.pdf
Need help with questions 2-4. Write assembly code to find absolute v.pdf
feelinggifts
 
Mashup caravan android-talks
Mashup caravan android-talksMashup caravan android-talks
Mashup caravan android-talks
honjo2
 
The International Journal of Engineering and Science (IJES)
The International Journal of Engineering and Science (IJES)The International Journal of Engineering and Science (IJES)
The International Journal of Engineering and Science (IJES)
theijes
 
Program uts
Program utsProgram uts
Program uts
ditaerlita
 
Uts
UtsUts
ch03g-graphics.ppt
ch03g-graphics.pptch03g-graphics.ppt
ch03g-graphics.ppt
Mahyuddin8
 
Drawing Figures
Drawing FiguresDrawing Figures
Drawing Figures
Ghaffar Khan
 
FLTK Summer Course - Part VIII - Eighth Impact - Exercises
FLTK Summer Course - Part VIII - Eighth Impact - ExercisesFLTK Summer Course - Part VIII - Eighth Impact - Exercises
FLTK Summer Course - Part VIII - Eighth Impact - Exercises
Michel Alves
 

Similar to import java (20)

Clock For My
Clock For MyClock For My
Clock For My
 
draw a pikachu in java package arreyreview- import java-awt--- import.pdf
draw a pikachu in java package arreyreview- import java-awt--- import.pdfdraw a pikachu in java package arreyreview- import java-awt--- import.pdf
draw a pikachu in java package arreyreview- import java-awt--- import.pdf
 
Lec 10 10_sept [compatibility mode]
Lec 10 10_sept [compatibility mode]Lec 10 10_sept [compatibility mode]
Lec 10 10_sept [compatibility mode]
 
Lec 11 12_sept [compatibility mode]
Lec 11 12_sept [compatibility mode]Lec 11 12_sept [compatibility mode]
Lec 11 12_sept [compatibility mode]
 
I need help on this 5 and 6. here is the code so far import jav.pdf
I need help on this 5 and 6. here is the code so far import jav.pdfI need help on this 5 and 6. here is the code so far import jav.pdf
I need help on this 5 and 6. here is the code so far import jav.pdf
 
Lec 7 28_aug [compatibility mode]
Lec 7 28_aug [compatibility mode]Lec 7 28_aug [compatibility mode]
Lec 7 28_aug [compatibility mode]
 
An Introduction to Tinkerpop
An Introduction to TinkerpopAn Introduction to Tinkerpop
An Introduction to Tinkerpop
 
bfd23fd7-0d89-45c0-8b82-c991b30ed375.pdf
bfd23fd7-0d89-45c0-8b82-c991b30ed375.pdfbfd23fd7-0d89-45c0-8b82-c991b30ed375.pdf
bfd23fd7-0d89-45c0-8b82-c991b30ed375.pdf
 
Introduction to graphics programming in c
Introduction to graphics programming in cIntroduction to graphics programming in c
Introduction to graphics programming in c
 
This is Java,I am currently stumped on how to add a scoreboard for.pdf
This is Java,I am currently stumped on how to add a scoreboard for.pdfThis is Java,I am currently stumped on how to add a scoreboard for.pdf
This is Java,I am currently stumped on how to add a scoreboard for.pdf
 
PART 4: GEOGRAPHIC SCRIPTING
PART 4: GEOGRAPHIC SCRIPTINGPART 4: GEOGRAPHIC SCRIPTING
PART 4: GEOGRAPHIC SCRIPTING
 
J slider
J sliderJ slider
J slider
 
Need help with questions 2-4. Write assembly code to find absolute v.pdf
Need help with questions 2-4. Write assembly code to find absolute v.pdfNeed help with questions 2-4. Write assembly code to find absolute v.pdf
Need help with questions 2-4. Write assembly code to find absolute v.pdf
 
Mashup caravan android-talks
Mashup caravan android-talksMashup caravan android-talks
Mashup caravan android-talks
 
The International Journal of Engineering and Science (IJES)
The International Journal of Engineering and Science (IJES)The International Journal of Engineering and Science (IJES)
The International Journal of Engineering and Science (IJES)
 
Program uts
Program utsProgram uts
Program uts
 
Uts
UtsUts
Uts
 
ch03g-graphics.ppt
ch03g-graphics.pptch03g-graphics.ppt
ch03g-graphics.ppt
 
Drawing Figures
Drawing FiguresDrawing Figures
Drawing Figures
 
FLTK Summer Course - Part VIII - Eighth Impact - Exercises
FLTK Summer Course - Part VIII - Eighth Impact - ExercisesFLTK Summer Course - Part VIII - Eighth Impact - Exercises
FLTK Summer Course - Part VIII - Eighth Impact - Exercises
 

import java

  • 1. import java.awt.Graphics; import java.awt.Graphics2D; import java.awt.Rectangle; import javax.swing.JPanel; import javax.swing.JComponent; import java.awt.*; import java.awt.geom.*; /** * Creating a gameboy pocket. * * @author (Samuel MacArthur) * @version (September 29 2014) */ public class IDKR extends JComponent { public void paintComponent(Graphics g) { //Recover Graphics 2d Graphics2D g2 = (Graphics2D) g; // Drawing the background black. Rectangle box3 = new Rectangle(0, 0, 900, 600); g2.setColor(Color.WHITE); g2.fill(box3); // Creating blue back of the gameboy Rectangle box = new Rectangle(200, 200, 200, 300); g2.draw(box); g2.setColor(Color.BLUE); g2.fill(box); // creating the black background on the gameboy. Rectangle box1 = new Rectangle(230, 210, 140, 120); g2.setColor(Color.BLACK); g2.fill(box1); // creating the screen for the gameboy. Rectangle box2 = new Rectangle(252, 220, 95, 95); g2.setColor(Color.GREEN); g2.fill(box2); // creating the words "Gameboy pocket" on the gameboy. g.setColor(Color.WHITE); g.drawString("Gameboy pocket", 245, 328); // creating the two red buttons on the gamboy Ellipse2D.Double circle = new Ellipse2D.Double(350, 372, 20, 20); g2.setColor(Color.RED); g2.fill(circle); Ellipse2D.Double circle1 = new Ellipse2D.Double(325, 387, 20, 20); g2.setColor(Color.RED); g2.fill(circle1);
  • 2. //Creating the d-pad on the gameboy. Rectangle box4 = new Rectangle(240, 370, 10, 30); g2.setColor(Color.BLACK); g2.fill(box4); Rectangle box5 = new Rectangle(230, 380, 30, 10); g2.setColor(Color.BLACK); g2.fill(box5); //Creating the select and start buttons on the gameboy. Stroke stroke = new BasicStroke(5.0f, BasicStroke.CAP_ROUND, BasicStroke.JOIN_ROUND); g2.setStroke(stroke); Line2D.Double line = new Line2D.Double(280, 440, 300, 440); g2.draw(line); Line2D.Double line2 = new Line2D.Double(310, 440, 330, 440); g2.draw(line2); // Naming the select and start buttons. g.drawString("select", 265, 460); g.drawString("start", 307, 460); g.drawString("A", 358, 407); g.drawString("B", 332, 422); // Creating the area where the sound comes out with many circles. Ellipse2D.Double circle89 = new Ellipse2D.Double(389, 480, 5, 5); g2.setColor(Color.BLACK); g2.fill(circle89); Ellipse2D.Double circle90 = new Ellipse2D.Double(389, 472, 5, 5); g2.setColor(Color.GRAY); g2.fill(circle90); Ellipse2D.Double circle91 = new Ellipse2D.Double(371, 472, 5, 5); g2.setColor(Color.GRAY); g2.fill(circle91); Ellipse2D.Double circle92 = new Ellipse2D.Double(371, 480, 5, 5); g2.setColor(Color.BLACK); g2.fill(circle92); Ellipse2D.Double circle93 = new Ellipse2D.Double(371, 488, 5, 5); g2.setColor(Color.GRAY); g2.fill(circle93);
  • 3. Ellipse2D.Double circle8 = new Ellipse2D.Double(380, 488, 5, 5); g2.setColor(Color.BLACK); g2.fill(circle8); Ellipse2D.Double circle30 = new Ellipse2D.Double(380, 480, 5, 5); g2.setColor(Color.GRAY); g2.fill(circle30); Ellipse2D.Double circle31 = new Ellipse2D.Double(380, 472, 5, 5); g2.setColor(Color.BLACK); g2.fill(circle31); Ellipse2D.Double circle9 = new Ellipse2D.Double(371, 488, 5, 5); g2.setColor(Color.BLACK); g2.fill(circle9); Ellipse2D.Double circle10 = new Ellipse2D.Double(371, 488, 5, 5); g2.setColor(Color.GRAY); g2.fill(circle10); Ellipse2D.Double circle11 = new Ellipse2D.Double(360, 488, 5, 5); g2.setColor(Color.BLACK); g2.fill(circle11); Ellipse2D.Double circle20 = new Ellipse2D.Double(360, 480, 5, 5); g2.setColor(Color.GRAY); g2.fill(circle20); Ellipse2D.Double circle21 = new Ellipse2D.Double(360, 472, 5, 5); g2.setColor(Color.BLACK); g2.fill(circle21); Ellipse2D.Double circle22 = new Ellipse2D.Double(360, 466, 5, 5); g2.setColor(Color.GRAY); g2.fill(circle22); Ellipse2D.Double circle23 = new Ellipse2D.Double(371, 466, 5, 5); g2.setColor(Color.GRAY); g2.fill(circle23); Ellipse2D.Double circle24 = new Ellipse2D.Double(382, 466, 5, 5);
  • 4. g2.setColor(Color.GRAY); g2.fill(circle24); Ellipse2D.Double circle12 = new Ellipse2D.Double(349, 488, 5, 5); g2.setColor(Color.GRAY); g2.fill(circle12); Ellipse2D.Double circle13 = new Ellipse2D.Double(349, 480, 5, 5); g2.setColor(Color.BLACK); g2.fill(circle13); Ellipse2D.Double circle14 = new Ellipse2D.Double(349, 472, 5, 5); g2.setColor(Color.GRAY); g2.fill(circle14); Ellipse2D.Double circle17 = new Ellipse2D.Double(360, 466, 5, 5); g2.setColor(Color.GRAY); g2.fill(circle17); Ellipse2D.Double circle16 = new Ellipse2D.Double(371, 466, 5, 5); g2.setColor(Color.BLACK); g2.fill(circle16); Ellipse2D.Double circle18 = new Ellipse2D.Double(382, 466, 5, 5); g2.setColor(Color.GRAY); g2.fill(circle18); Ellipse2D.Double circle19 = new Ellipse2D.Double(389, 466, 5, 5); g2.setColor(Color.BLACK); g2.fill(circle19); } }