Search:

Type: Posts; User: needhelp101

Search: Search took 0.07 seconds.

  1. Thread: Applet

    by needhelp101
    Replies
    16
    Views
    1,929

    Re: Applet

    actually, I have one last question. I've been trying to set an image as my background, but have not had any success at all. I've only been able to position an image on the screen, but not able to set...
  2. Thread: Applet

    by needhelp101
    Replies
    16
    Views
    1,929

    Re: Applet

    actually, it just came to me. I figured it out. I had my repaint function in the wrong place. by changing the place of the repaint function to inside the else statement, i was able to achieve what i...
  3. Thread: Applet

    by needhelp101
    Replies
    16
    Views
    1,929

    Re: Applet

    ok, so lets say i used UHgt for the local variable. so I would have




    int UHgt = 700;

    if(UHgt < 700)
    {
    Height = UHgt;
  4. Thread: Applet

    by needhelp101
    Replies
    16
    Views
    1,929

    Re: Applet

    can u show me an example? I've got a lot of things going through my head that I can't even think clearly.
  5. Thread: Applet

    by needhelp101
    Replies
    16
    Views
    1,929

    Re: Applet

    ok, so you're saying that I should have to more lines of code that look like that, but with different variable names?
  6. Thread: Applet

    by needhelp101
    Replies
    16
    Views
    1,929

    Re: Applet

    if i use the variables "height" and "width" as the variables to draw the rectangle, i'm not sure how to implement the separate variables for getting the values
  7. Thread: Applet

    by needhelp101
    Replies
    16
    Views
    1,929

    Re: Applet

    I determined the size of the actual applet itself. But now all i have to do is control the size of the rectangle itself. But now what i am trying to do, is to have an error message appear if the user...
  8. Thread: Applet

    by needhelp101
    Replies
    16
    Views
    1,929

    Re: Applet

    Thats what i'm trying to figure out. in my first post, i put exactly what i needed to do that the teacher was asking. here it is again.


    Write an applet that draws a rectangle according to the...
  9. Thread: Applet

    by needhelp101
    Replies
    16
    Views
    1,929

    Re: Applet

    Ok, but I'm really not sure how I would set up the if statement. The only thing I can think of is if(height > MaximumSize || width < MinimumSize){ <code> } but afterr that, I'm not sure. I'm not even...
  10. Thread: Applet

    by needhelp101
    Replies
    16
    Views
    1,929

    Applet

    I am writing a rectangle applet. Everything works fine, runs and compiles fine. What i am supposed to do as well is restrict the maximum and minimum size of the applet such that the user cannot enter...
Results 1 to 10 of 10