[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
[
List Home]
[platform-swt-dev] URGENT - PROBLEMS WITH SWT.JAR AND CASIO PDA DT-X10M30E AND DT-X10M10E
|
Hi friends,
we have an special problems trying to load the Display class content on swt.jar on Industrial pocket devices, our models with problems are CASIO DT-X10M10E and CASIO DT-X10M30E (the same device in USA is CASIO DT-X10M30U).
You will find our examplo code below, is very simple but the application don't create an exception to know the real problem. (in yellow the line error)
import org.eclipse.swt.widgets.Display;
import org.eclipse.swt.widgets.Shell;
import org.eclipse.swt.widgets.Text
;
import nuevosar.capatrasversal.excepciones.SarGestorConexionesException;
import nuevosar.capatrasversal.trazas.CM_Logger;
public class IU_MenuPrincipal {
public IU_MenuPrincipal(CM_Logger logger) throws SarGestorConexionesException{
final Display display = new Display();
_logger.pintarTraza("Despues del Display");
final Shell shell = new Shell(display);
Fuentes fuente = new Fuentes(display);
Text textNave = new Text(shell, 4);
textNave.setVisible(false);
FormLayout layout = new FormLayout();
layout.spacing = 5;
layout.marginHeight = layout.marginWidth = 9;
shell.setLayout(layout);
FormData textDataNave = new FormData();
textDataNave.top = new FormAttachment(0);
textDataNave.left
= new FormAttachment(20);
textDataNave.right = new FormAttachment(80);
textDataNave.height = 5;
textNave.setLayoutData(textDataNave);
shell.setFont(fuente.getFuenteNormal());
shell.setMaximized(false);
shell.setMinimized(false);
shell.setText(Multidioma._GN_SAR);
shell.open
();
while(!shell.isDisposed())
if(!display.readAndDispatch())
display.sleep();
display.dispose();
}
Lib version: swt.jar ver: 3.0.2
Dll released: swt-win32-3064.dll
Maybe to resolve the problem we need to compile a Custom SWT library, any people has information regarding the process?
Thanks in advanced,
Fran Parras