Update of /cvsroot/geotools/geotools/src/uk/ac/leeds/ccg/widgets
In directory usw-pr-cvs1:/tmp/cvs-serv28894/uk/ac/leeds/ccg/widgets
Modified Files:
NudgeNavigate.java
Log Message:
removed calls to getWidth() which only arrived in Java1.2
Index: NudgeNavigate.java
===================================================================
RCS file: /cvsroot/geotools/geotools/src/uk/ac/leeds/ccg/widgets/NudgeNavigate.java,v
retrieving revision 1.2
retrieving revision 1.3
diff -C2 -d -r1.2 -r1.3
*** NudgeNavigate.java 2001/11/19 13:09:30 1.2
--- NudgeNavigate.java 2001/11/21 18:34:24 1.3
***************
*** 42,46 ****
int x = evt.getX();
int y= evt.getY();
! int w = Math.min(getWidth(),getHeight());
int col = x/(w/4);
--- 42,46 ----
int x = evt.getX();
int y= evt.getY();
! int w = Math.min(getBounds().width,getBounds().height);
int col = x/(w/4);
***************
*** 104,109 ****
public void paint(Graphics g){
! int w = getWidth();
! int h = getHeight();
w = Math.min(w,h);
h = Math.min(w,h);
--- 104,109 ----
public void paint(Graphics g){
! int w = this.getSize().width;
! int h = this.getSize().height;
w = Math.min(w,h);
h = Math.min(w,h);
|