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...
Type: Posts; User: needhelp101
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...
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...
ok, so lets say i used UHgt for the local variable. so I would have
int UHgt = 700;
if(UHgt < 700)
{
Height = UHgt;
can u show me an example? I've got a lot of things going through my head that I can't even think clearly.
ok, so you're saying that I should have to more lines of code that look like that, but with different variable names?
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
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...
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...
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...
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...