Search:

Type: Posts; User: bourbine

Search: Search took 0.08 seconds.

  1. Re: drawing a several lines from d bottom right corner of a JFrame

    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
  2. Re: drawing a several lines from d bottom right corner of a JFrame

    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); ...
  3. Re: drawing a several lines from d bottom right corner of a JFrame

    Upper right :width,0 bottom left:0,-height, bottom right:width,-height
  4. Re: drawing a several lines from d bottom right corner of a JFrame

    If that's for the upper left what do I use for the bottom right
  5. Re: drawing a several lines from d bottom right corner of a JFrame

    I can tell because I have run the code and it is working x =0,y=0
  6. Re: drawing a several lines from d bottom right corner of a JFrame

    I've tried using this but it keeps on drawing. From the top left.
    super.paintComponent(g); int width...
  7. Re: drawing a several lines from d bottom right corner of a JFrame

    import java.awt.Graphics; public class Drawing extends JPanel{ ...
  8. Re: drawing a several lines from d bottom right corner of a JFrame

    import java.awt.Graphics; import javax.swing.JPanel; Public class Draing extends JPanel{ //Here is my method paint component wit some comments. ...
  9. Re: drawing a several lines from d bottom right corner of a JFrame

    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...
  10. Re: drawing a several lines from d bottom right corner of a JFrame

    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...
  11. drawing a several lines from d bottom right corner of a JFrame

    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...
Results 1 to 11 of 11