QGridLayout passwordGrid = new QGridLayout();
QGridLayout buttonGrid = new QGridLayout();
longitude = new QLineEdit();
QDoubleValidator longVal = new QDoubleValidator(-180.0,180.0,4,longitude);
longVal.setNotation(Notation.StandardNotation);
longitude.setValidator(longVal);
latitude = new QLineEdit();
QDoubleValidator latVal = new QDoubleValidator(-90.0,90.0,4,latitude);
latVal.setNotation(Notation.StandardNotation);
latitude.setValidator(latVal);
altitude = new QLineEdit();
QDoubleValidator altVal = new QDoubleValidator(-9999.0,9999.0,4,altitude);
altVal.setNotation(Notation.StandardNotation);
altitude.setValidator(altVal);
passwordGrid.addWidget(new QLabel(tr("Longitude")), 1,1);
passwordGrid.addWidget(longitude, 1, 2);