source:
src/main/java/negotiator/onetomany/etc/Line.java@
217
Last change on this file since 217 was 215, checked in by , 6 years ago | |
---|---|
File size: 434 bytes |
Line | |
---|---|
1 | package negotiator.onetomany.etc; |
2 | |
3 | import javax.swing.*; |
4 | import java.awt.*; |
5 | import java.awt.geom.*; |
6 | |
7 | |
8 | public class Line extends JFrame{ |
9 | |
10 | |
11 | public void paint(Graphics g) { |
12 | super.paint(g); // fixes the immediate problem. |
13 | Graphics2D g2 = (Graphics2D) g; |
14 | g2.setColor(Color.LIGHT_GRAY); |
15 | Line2D lin = new Line2D.Float(100, 100, 400, 100); |
16 | g2.draw(lin); |
17 | } |
18 | |
19 | } |
20 | |
21 |
Note:
See TracBrowser
for help on using the repository browser.