Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.java.gui > #1704 > unrolled thread
| Started by | "TheBigPJ" <thebigpj@THRWHITE.remove-dii-this> |
|---|---|
| First post | 2011-04-27 15:34 +0000 |
| Last post | 2011-04-27 15:34 +0000 |
| Articles | 2 — 2 participants |
Back to article view | Back to comp.lang.java.gui
How to draw a simple line "TheBigPJ" <thebigpj@THRWHITE.remove-dii-this> - 2011-04-27 15:34 +0000
Re: How to draw a simple "visionset" <visionset@THRWHITE.remove-dii-this> - 2011-04-27 15:34 +0000
| From | "TheBigPJ" <thebigpj@THRWHITE.remove-dii-this> |
|---|---|
| Date | 2011-04-27 15:34 +0000 |
| Subject | How to draw a simple line |
| Message-ID | <1180283348.916553.87450@p47g2000hsd.googlegroups.com> |
To: comp.lang.java.gui Good Morning/Evening Could someone please show me how to draw just a simple line from say 1,1 to 25,25 using the 2d package? Thank you, Peter --- * Synchronet * The Whitehouse BBS --- whitehouse.hulds.com --- check it out free usenet! --- Synchronet 3.15a-Win32 NewsLink 1.92 Time Warp of the Future BBS - telnet://time.synchro.net:24
[toc] | [next] | [standalone]
| From | "visionset" <visionset@THRWHITE.remove-dii-this> |
|---|---|
| Date | 2011-04-27 15:34 +0000 |
| Subject | Re: How to draw a simple |
| Message-ID | <Bqi6i.838$E9.4@newsfe6-gui.ntli.net> |
| In reply to | #1704 |
To: comp.lang.java.gui
"TheBigPJ" <TheBigPJ@gmail.com> wrote in message
news:1180283348.916553.87450@p47g2000hsd.googlegroups.com...
> Good Morning/Evening
>
> Could someone please show me how to draw just a simple line from say
> 1,1 to 25,25 using the 2d package?
>
package test;
import java.awt.Graphics;
import javax.swing.JFrame;
public class LineTest extends JFrame {
public LineTest() {
setBounds(0,0,100,100);
setVisible(true);
}
protected void paintComponent(Graphics g) {
g.drawLine(0,0,25,25);
}
public static void main(String... args) {
new LineTest();
}
}
--
Mike W
---
* Synchronet * The Whitehouse BBS --- whitehouse.hulds.com --- check it out free usenet!
--- Synchronet 3.15a-Win32 NewsLink 1.92
Time Warp of the Future BBS - telnet://time.synchro.net:24
[toc] | [prev] | [standalone]
Back to top | Article view | comp.lang.java.gui
csiph-web