private HorizontalPanel getWallTimeFormPanel() { if (WallTimeFormPanel == null) { WallTimeFormPanel = new HorizontalPanel(); WallTimeFormPanel.setHeight("66px"); WallTimeFormPanel.setVerticalAlign(VerticalAlignment.BOTTOM); WallTimeFormPanel.setSpacing(10); TableData tableData = new TableData(); tableData.setVerticalAlign(VerticalAlignment.BOTTOM); WallTimeFormPanel.add(getDaysContainer(), tableData); TableData tableData_1 = new TableData(); tableData_1.setVerticalAlign(VerticalAlignment.BOTTOM); WallTimeFormPanel.add(getHoursContainer(), tableData_1); TableData tableData_2 = new TableData(); tableData_2.setVerticalAlign(VerticalAlignment.BOTTOM); WallTimeFormPanel.add(getMinutesContainer(), tableData_2); // setting last walltime int walltimeInMinutes = -1; try { String wtString = UserEnvironment.getInstance() .getUserProperty(Constants.GENERIC_JOB_LAST_WALLTIME_IN_MINUTES); walltimeInMinutes = Integer.parseInt(wtString); if (walltimeInMinutes > 0) { int days = walltimeInMinutes / (60 * 24); int hours = (walltimeInMinutes - (days * 60 * 24)) / 3600; int minutes = (walltimeInMinutes - ((days * 60 * 24) + (hours * 3600))) / 60; getMinutesComboBox().setSimpleValue(minutes); getHoursComboBox().setSimpleValue(hours); getDaysComboBox().setSimpleValue(days); } } catch (Exception e) { // do nothing } } return WallTimeFormPanel; }