# HG changeset patch # User Carl Byington # Date 1403113006 25200 # Node ID 1b5887a3bb1c0a8992e53c572d5ee02e8816bd78 # Parent 171e0a977544ab6c6e21ba11b35e5d7c413ea7ea setField() needs to dirty the modified screen positions diff -r 171e0a977544 -r 1b5887a3bb1c src/org/tn5250j/framework/tn5250/Screen5250.java --- a/src/org/tn5250j/framework/tn5250/Screen5250.java Wed Jun 18 10:10:14 2014 -0700 +++ b/src/org/tn5250j/framework/tn5250/Screen5250.java Wed Jun 18 10:36:46 2014 -0700 @@ -2684,19 +2684,21 @@ } /* - * set the content of the field at (l,c) to d - * if l == -1, set the current field contents to d + * set the content of the field at (l,c) to data + * if l == -1, set the current field contents to data */ - public void setField(int l, int c, char [] d) { + public void setField(int l, int c, char [] data) { ScreenField cf; if (l >= 0) { int position = l * numCols + c; isInField(position, true); } - if ((d != null) && (d.length > 0)) { + if ((data != null) && (data.length > 0)) { cf = screenFields.getCurrentField(); - cf.setString(new String(d)); + cf.setString(new String(data)); lastPos = cf.getStartPos(); + setDirty(lastPos); + setDirty(lastPos + df.getLength()); } updateDirty(); }