Last change
on this file since 219 was 219, checked in by Faria Nassiri Mofakham, 6 years ago |
'Line' problem (and in GUI) fixed. (There also have been several updates in other files before this commit!!)
|
File size:
1.0 KB
|
Line | |
---|
1 | package negotiator.onetomany.etc;
|
---|
2 | //
|
---|
3 | //import java.awt.Canvas;
|
---|
4 | //import java.awt.Color;
|
---|
5 | //import java.awt.Graphics;
|
---|
6 | //import java.awt.image.BufferedImage;
|
---|
7 | //import java.io.File;
|
---|
8 | //import java.net.URL;
|
---|
9 | //
|
---|
10 | //import javax.imageio.ImageIO;
|
---|
11 | //import javax.swing.JFrame;
|
---|
12 | //
|
---|
13 | //public class Bob extends Canvas
|
---|
14 | //{
|
---|
15 | // BufferedImage bobImage;
|
---|
16 | //
|
---|
17 | // public Bob(String i)
|
---|
18 | // {
|
---|
19 | // try
|
---|
20 | // {
|
---|
21 | // bobImage = ImageIO.read(new File(getClass().getResource(i).toURI()));
|
---|
22 | // }
|
---|
23 | // catch (Exception e)
|
---|
24 | // {
|
---|
25 | // e.printStackTrace();
|
---|
26 | // }
|
---|
27 | // }
|
---|
28 | //
|
---|
29 | // public void paint(Graphics g)
|
---|
30 | // {
|
---|
31 | // g.drawImage(bobImage, getWidth(), getHeight(), null);
|
---|
32 | // }
|
---|
33 | //
|
---|
34 | //
|
---|
35 | //}
|
---|
36 | //
|
---|
37 | //
|
---|
38 |
|
---|
39 |
|
---|
40 | package negotiator.onetomany.etc;
|
---|
41 |
|
---|
42 | import java.awt.Canvas;
|
---|
43 | import java.awt.Color;
|
---|
44 | import java.awt.Graphics;
|
---|
45 |
|
---|
46 |
|
---|
47 | /**
|
---|
48 | * @author Faria Nassiri-Mofakham
|
---|
49 | *
|
---|
50 | */
|
---|
51 | public class Bob extends Canvas{
|
---|
52 |
|
---|
53 | /**
|
---|
54 | *
|
---|
55 | */
|
---|
56 |
|
---|
57 | String image;
|
---|
58 |
|
---|
59 | public Bob(String i)
|
---|
60 | {
|
---|
61 | image = i;
|
---|
62 | }
|
---|
63 | public void paint(Graphics g)
|
---|
64 | {
|
---|
65 | g.
|
---|
66 | }
|
---|
67 |
|
---|
68 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.