How about something like this: //to get the source of the object upon which the user has performed the action Object source = e.getSource(); if (source == someObj) someObj.setLocation(newXpos, newYpos); You could also get the X & Y positions, and just increment by some value to have the component dance across the page.
posted 14 years ago
I want to Move arround the controls within the applet and alow user to resize them just a we do a design time in some IDEs like Visual Age or Visual Basic for instens. Basically i wish to make an design time eviournment (studio) of somekind. kindly help!
What are you doing? You are supposed to be reading this tiny ad!
the new thread boost feature brings a LOT of attention to your favorite threads