ВУЗ:
Составители:
Рубрика:
108
textBox.setString(new String(data));
}
}
catch (RecordStoreException ex) {
showError(ex.getMessage(), false);
}
finally {
try {
store.closeRecordStore();
}
catch (RecordStoreException ex) {
ex.printStackTrace();
}
}
}
protected void destroyApp(boolean unconditional)
{
try {
store = openStore();
byte[] data = textBox.getString().getBytes();
store.addRecord(data, 0, data.length);
}
catch (RecordStoreException ex) {
showError(ex.getMessage(), true);
}
finally {
try {
store.closeRecordStore();
}
catch (RecordStoreException ex) {
ex.printStackTrace();
}
}
}
protected void pauseApp() {}
protected void startApp()
throws MIDletStateChangeException
{
Display.getDisplay(this).setCurrent(textBox);
}
public void commandAction(Command c, Displayable d)
{
if (c == exitCommand) {
destroyApp(true);
notifyDestroyed();
}
}
Страницы
- « первая
- ‹ предыдущая
- …
- 106
- 107
- 108
- 109
- 110
- …
- следующая ›
- последняя »