answersLogoWhite

0

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

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

User Avatar

Wiki User

15y ago

What else can I help you with?

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.


In qbasic How many line commands are required to draw a square?

In QBASIC, you can draw a square using just a few line commands. You typically need a command to set the graphics mode, followed by a loop or multiple line commands to draw each side of the square. For example, using the LINE command, you can draw a square with four separate LINE statements or a loop that iterates four times. In total, you would need at least 5 commands if you include setting the graphics mode and drawing the lines.


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


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


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.


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