last day (15 days later) » 

3:34 PM
0
A: Unable To Delete Multi Selected Objects

Fast Snailit should be shapes.remove(s); not shapes.remove(multiShape); you should pass shape s to remove method to remove shape s from shapes ArrayList java.util.ArrayList.remove(Object) // this is the method you are using .

 
Hi, it worked.I just marked as answer :-) Thanks alot.
 
@LattaLiPong nice to here that .... <3
 
Hmm, I just noticed that sometimes my deletion din work well. For example, i'm able to delete selected object but failed to do so at another attempt.. :-(
 
@LattaLiPong that's may cause some other code ...basically above method remove object s from shapelist .there is no problem with that.
 
Another thing I noticed is, I will only able to delete the selection if the first shape I clicked earlier was chosen.
For example, there are 3 shapes. So i shift-click on Shape A,B,C respectively. However, if i right-click for the deletion selection on either B or C.. it would delete any except I click back onto Shape A
 
3:34 PM
"it would delete any except I click back onto Shape A" plz again clarify this statement i didn't get it
 
Meaning to say, if I were to select 3 shapes at a time..Supposed I shall be able to perform the deletion on any shapes regardless its order. For example,i first click shape 1, then 2 and followed by 3. But, at this moment, with 3 selected objects, I have to click the Shape 1 to be able to perform the deletion.
 
@LattaLiPong where is it?
hmmmmmmmmmm
 
Do you mind, if i send a zip files? Because I have separated my program into few classes. & at the same time I would not want to make it public yet till my project submission date.
 
Btw, the links provided is only viewable by both of us right?
in this room
 
3:39 PM
no
then send to my email
madhawapriyashantha@gmail.com
 
Sent :-)
 
anyone can see our chat if they want
 
Owh.. noted that
When you run my program kindly try the following method.
First, you create few shapes. Then select multiple shapes with the shift key. Try to right click and perform the delection.
 
You will notice that you will not able to delete all the selected shapes unless, you right click and perform it at the first shape that you click earlier while holding the shift key
 
3:48 PM
which class should i run
 
DrawingShape
 
oops
dude
i run this yesterday
 
Yup, juz todays is the complete module :-)
only issue with the deletion..lol
 
what is the problem.when i delete only firest selected one deleted
 
If can delete all the objects..If you right click the deletion selection at first object.
Not others.
Try shift click few shapes, then click on any objects to for deletion.
You will notice, they wont go away
 
3:55 PM
hmm but i noticed there are lot of bugs
 
lol, how come the multiselection you did earlier manage to delete all..
I'm only to do so, if I click back on the first shape earlier
 
ones you failed to delete by delete button you can't delete even a single shape anyore ..why is that
 
I think the problem lies on how I handle the mouselistener
 
HMM DO YOU NEED ME TO HELP .if so i have to go throw your all the code cuz i see lot of problems
 
How do you mean by throwing all my code?
 
4:07 PM
*go through
 
Yes, I would be glad if you could do so. Thks
 
i mean i ahev to realize your mechanism
 
I think, my mouse event handling arent good enuff
 
but that will take lot of time .you go ahead and build your other codes even a problem exist .i will see your code tonight [now 10.00pm]
 
12AM here.. lol
 
4:11 PM
evening ?
 
it is midnight here.. haha
 
oohh so now you going to sleep?
 
I don think so
hehe
Normally I go to bed around 2-3am
 
that's bad but me too some times ..i will fix your code and send you tommorow ,is it ok
 
Hmm, I have to submit my project 11 hours from now.
 
4:20 PM
ok i will take a wash and read your code and try to send quickly .ok
 
Really thank you so much
 
hmm bye
 
LOL.. feeling like sleeping after looking at ur emoticon..haha
 
 
3 hours later…
7:33 PM
hello i look at your code .but i coudn't find the problem
 

  last day (15 days later) »