No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.
2 Posted Topics
Re: This is a fairly common mistake with arrays in Java. The line R obj[] = new R[100]; creates an array to hold objects of type R. However, no actual objects of type R are created yet. You need some code such as [code] for(int i=0; i<100; i++) obj[i] = new … | |
Re: To have a mouseDown procedure, one must implement a MouseListener interface (in java.awt.event). mouseDrag is similarly implemented via a MouseMotionListener, also in java.awt.event. However, to have the ability to both detect clicks and movement (quite helpful, really), one must use a different interface. include javax.swing.event.MouseInputListener [URL="http://java.sun.com/javase/7/docs/api/javax/swing/event/MouseInputListener.html"](details here)[/URL] Note that this … |
The End.