Thanks norm you're a life saver I've finally gotten it I simply created variables and set them to 0 and used them in my code thank u very much once again I really appreciate the time and effort
Type: Posts; User: bourbine
Thanks norm you're a life saver I've finally gotten it I simply created variables and set them to 0 and used them in my code thank u very much once again I really appreciate the time and effort
But even when I specify the starting point as width,height and the end point as 0,0 it still ends up drawing the lines from the top left
--- Update ---
/*I used*/ g.drawLine(width,height,0,0); ...
Upper right :width,0 bottom left:0,-height, bottom right:width,-height
If that's for the upper left what do I use for the bottom right
I can tell because I have run the code and it is working x =0,y=0
I've tried using this but it keeps on drawing. From the top left.
super.paintComponent(g); int width...
import java.awt.Graphics; public class Drawing extends JPanel{ ...
import java.awt.Graphics; import javax.swing.JPanel; Public class Draing extends JPanel{ //Here is my method paint component wit some comments. ...
My width and height have values of 250 and 300 respectively but if I use co-ordinates (0,0,width,height). It draws the fan from the top left and if I use co-ordinate (0,height,width,0 ) it draws...
I'm so sorry hope this is better
--- Update ---
I want to draw several lines from the lower right corner of my JFrame so it resembles a hand fan I know I have to use a for loop but I'm having...
I want to draw several line from the lower right corner of my JFrame so it resembles a hand fan I know I have 2 use a for loop but I'm having problems with the co-ordinates I have set variable...