Skip to content

Commit

Permalink
Fixed position entry on tool bar.
Browse files Browse the repository at this point in the history
  • Loading branch information
[email protected] committed Aug 14, 2011
1 parent 0c58703 commit 890f6a1
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions picedit/src/com/agifans/picedit/CommonHandler.java
Original file line number Diff line number Diff line change
Expand Up @@ -140,8 +140,8 @@ protected void processEnterPosition() {
final StringBuilder inputLine = new StringBuilder();

// Clear position box reading for input.
picGraphics.drawFilledBox(230, 179, 273, 187, 0);
picGraphics.drawString(inputLine.toString(), 231, 180, 7, 0);
picGraphics.drawFilledBox(230, 2, 273, 10, 0);
picGraphics.drawString(inputLine.toString(), 231, 3, 7, 0);

// Register a temporary KeyListener for getting the new position.
this.application.addKeyListener(new KeyAdapter() {
Expand Down Expand Up @@ -178,8 +178,8 @@ public void keyPressed(KeyEvent e) {
}

String tempString = String.format("%5s", inputLine);
picGraphics.drawFilledBox(230, 179, 273, 187, 0);
picGraphics.drawString(tempString, 230, 180, 7, 0);
picGraphics.drawFilledBox(230, 2, 273, 10, 0);
picGraphics.drawString(tempString, 230, 3, 7, 0);
}
});
}
Expand Down

0 comments on commit 890f6a1

Please sign in to comment.