[Bprocessor-commit] gl/src/net/sourceforge/bprocessor/gl GLView.java,1.15,1.16
Status: Pre-Alpha
Brought to you by:
henryml
From: Nordholt <nor...@us...> - 2005-09-30 19:25:06
|
Update of /cvsroot/bprocessor/gl/src/net/sourceforge/bprocessor/gl In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv20505 Modified Files: GLView.java Log Message: added method for showing popup menues on the canvas Index: GLView.java =================================================================== RCS file: /cvsroot/bprocessor/gl/src/net/sourceforge/bprocessor/gl/GLView.java,v retrieving revision 1.15 retrieving revision 1.16 diff -C2 -d -r1.15 -r1.16 *** GLView.java 14 Sep 2005 14:02:13 -0000 1.15 --- GLView.java 30 Sep 2005 17:52:06 -0000 1.16 *************** *** 27,30 **** --- 27,31 ---- import javax.swing.JPanel; import javax.swing.JLabel; + import javax.swing.JPopupMenu; import org.apache.log4j.Logger; *************** *** 170,174 **** return glc; } ! /** * The length field class --- 171,185 ---- return glc; } ! ! /** ! * Displays the popup menu at the given coordinates ! * @param pp the popup menu ! * @param x the x coordinate ! * @param y the y coordinate ! */ ! public void popup(JPopupMenu pp, int x, int y) { ! pp.show(glc, x, y); ! } ! /** * The length field class *************** *** 177,181 **** /** The logger */ private Logger log = Logger.getLogger(LengthField.class); ! /** * The constructor --- 188,192 ---- /** The logger */ private Logger log = Logger.getLogger(LengthField.class); ! /** * The constructor *************** *** 209,213 **** return 0; } ! /** * Handle a notification --- 220,224 ---- return 0; } ! /** * Handle a notification |