summaryrefslogtreecommitdiff
path: root/sources/smstrade
diff options
context:
space:
mode:
Diffstat (limited to 'sources/smstrade')
-rw-r--r--sources/smstrade/SFrame.java2
-rw-r--r--sources/smstrade/SMain.java7
-rw-r--r--sources/smstrade/SPrefs.java2
3 files changed, 7 insertions, 4 deletions
diff --git a/sources/smstrade/SFrame.java b/sources/smstrade/SFrame.java
index 79dfdb0..0c223a5 100644
--- a/sources/smstrade/SFrame.java
+++ b/sources/smstrade/SFrame.java
@@ -1,4 +1,4 @@
-/*
+/* JSMSTrade v0.2
* Copyright (c) 2008, 2009 Dipl.-Inform. (FH) Paul C. Buetow
* jsmstrade@dev.buetow.org - http://jsmstrade.buetow.org
*
diff --git a/sources/smstrade/SMain.java b/sources/smstrade/SMain.java
index 42b11ef..b9f3c8d 100644
--- a/sources/smstrade/SMain.java
+++ b/sources/smstrade/SMain.java
@@ -1,4 +1,4 @@
-/*
+/* JSMSTrade v0.2
* Copyright (c) 2008, 2009 Dipl.-Inform. (FH) Paul C. Buetow
* jsmstrade@dev.buetow.org - http://jsmstrade.buetow.org
*
@@ -43,7 +43,7 @@ public class SMain extends SFrame {
private static final int MESSAGE_MAX_LENGTH = 160;
/** The program version */
- private static final double VERSION = 0.1;
+ private static final double VERSION = 0.2;
/** The save file */
public static final String SAVE_FILE = "jsmstrade.dat";
@@ -153,6 +153,9 @@ public class SMain extends SFrame {
int length = textArea.getText().length();
if (length > MESSAGE_MAX_LENGTH) {
+ int diff = length - MESSAGE_MAX_LENGTH;
+ textArea.setText(
+ textArea.getText().substring(0, length-diff));
ke.consume();
} else {
diff --git a/sources/smstrade/SPrefs.java b/sources/smstrade/SPrefs.java
index eb6194c..16d6109 100644
--- a/sources/smstrade/SPrefs.java
+++ b/sources/smstrade/SPrefs.java
@@ -1,4 +1,4 @@
-/*
+/* JSMSTrade v0.2
* Copyright (c) 2008, 2009 Dipl.-Inform. (FH) Paul C. Buetow
* jsmstrade@dev.buetow.org - http://jsmstrade.buetow.org
*