Forum: Java Nov 2nd, 2008 |
| Replies: 3 Views: 1,984 ok, how can I make my rectangle with no area?
Can you actually show me the code?
then, I will mark this thread as solved.
Thanks again, |
Forum: Java Nov 2nd, 2008 |
| Replies: 3 Views: 1,984 can you guys help me how can I remove all those drawn rectangles if user click the mouse in the applet field?
I am supposed to write a program that displays a rectangle and color it with green when... |
Forum: Java Nov 1st, 2008 |
| Replies: 22 Views: 2,603 I know the code goes in mouseClicked(MouseEvent e)
My question is what would my code be like in that method? any help, sir??? |
Forum: Java Nov 1st, 2008 |
| Replies: 22 Views: 2,603 how can I make the rectangle disappear after I click the mouse anywhere in applet?
what line of codes do I need to add?
Thanks,
here is my working version of code:-
import javax.swing.*;... |
Forum: Java Nov 1st, 2008 |
| Replies: 22 Views: 2,603 I dont want my rectangle to be filled with green while dragging, rather I want my recatngle to be filled when I release my mouse(done with dragging). I dont think I need repaint method in... |
Forum: Java Nov 1st, 2008 |
| Replies: 22 Views: 2,603 what code goes inside the two methods, mouseExited and mouseMoved?
This problme turns out to be harder than I thought!
Thanks, |
Forum: Java Nov 1st, 2008 |
| Replies: 22 Views: 2,603 so, how can I fix it? just by removing that line? |
Forum: Java Nov 1st, 2008 |
| Replies: 22 Views: 2,603 Ezzarel, I did run the applet with the code you provided. I am confused if I have to use that canvas mentioned in your code.
Here is my updated code, and I am getting one compile error. Can you... |
Forum: Java Nov 1st, 2008 |
| Replies: 22 Views: 2,603 so far I got upto this part! can anyone help me how to proceed from here:
/codeimport javax.swing.*;
import java.awt.*;
import java.awt.event.*;
import java.net.*;
public class DragRectangle... |
Forum: Java Oct 31st, 2008 |
| Replies: 22 Views: 2,603 Ezzaral, can you show me some steps please?
so, am I in the right track???? |
Forum: Java Oct 31st, 2008 |
| Replies: 22 Views: 2,603 Sorry, I didn't get you. I understand that I cant use e, So I am using 'event' as my object.
Where you get that myREctangle? is that an object????
Thanks , |
Forum: Java Oct 31st, 2008 |
| Replies: 22 Views: 2,603 I am trying to write a program that displays a rectangle when user drag the mouse and when user release mouse, it displays the rectangle with green color.
I am terribly confused here is what I am... |