micropeak: Move raw view caret to top. Make raw text uneditable
authorKeith Packard <keithp@keithp.com>
Sat, 5 Jan 2013 18:36:50 +0000 (10:36 -0800)
committerKeith Packard <keithp@keithp.com>
Sat, 5 Jan 2013 18:36:50 +0000 (10:36 -0800)
Signed-off-by: Keith Packard <keithp@keithp.com>
micropeak/MicroRaw.java

index dd480bfe30e00e007f71a6e296edb2f86fe0a530..8546cffb5daa52b841a0064d3d796251a6a4e024 100644 (file)
@@ -34,10 +34,12 @@ public class MicroRaw extends JTextArea {
                } catch (IOException ie) {
                        setText(String.format("Error writing data: %s", ie.getMessage()));
                }
+               setCaretPosition(0);
        }
 
        public MicroRaw() {
                super(1, 30);
                setFont(AltosUILib.table_value_font);
+               setEditable(false);
        }
 }