answersLogoWhite

0


Best Answer

Drawing a line from (x1, y1) to (x2, y2) using a default Graphics object:

graphics.drawLine(x1, y1, x2, y2);

User Avatar

Wiki User

14y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: How do you draw a line on Java Graphics?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

Does Java use your graphics card?

Well actually it depends. If you plan on making graphics with java, then yes. Otherwise no. Hoping this comes to use.


What will heppen if an image drawn out of the window coordinate in Java?

ACM Java graphics programs run in a window called the graphics window. If the location is outside of the graphics window then the object is not visible.


What is graphics software?

Using graphics software programs enables you to draw and edit images, from line drawings, to color illustrations, to photos.


Difference between gks and phigs in graphics?

Phigs used to draw 3-d graphics where as gks is used to draw 2-d graphics


Im bored in graphics what should i do?

you can draw in the back of your graphics book


Is it possible to draw in java without using applet?

Yes it is possible to draw in java by using AWT package. or by using javax package.


Write a java code to draw a circle inside in an ellipse?

write a program draw circle and ellipse by using oval methods in java


What does java and java fx do?

JAVA is Group Of Technologies Like Java SE, Java EE, Java ME and Java FX is a Latest Technology Released From SUN Micro Systems Sun Developed Java FX as Counterpart to Microsoft's Graphics Libraries and Rich Support of Visual Studio to GUI Classes of .NET Framework. But in JAVA FX We can Do some advanced Graphics Operations in Programming Apart From AWT & Swing of Java SE and Rich Internet Application Technologies Like Enterprise Java Beans (EJB),JSP Of Java EE.


Can you get java moderators to change your stats on runescape?

1) java is the graphics server -_- 2) if a JAGEX mod were to do that then they would get fired.


How do you draw pentagon in engineering graphics?

Easily


THE world of graphics before and after the invention of corel draw?

the world of graphics before and after the invention of coreldraw


What is graphics programming in vb?

Graphics programming is when you manually draw an item to your application instead of using a picture box, label, or button. To start drawing graphics you need to import the graphics library. Imports System.Drawing.Graphics Then create a new graphics Dim g As New Graphics that is it. when you call "g" you will have many operators in it to draw to the forum. Hope this helps :)