static void showNotApplicableInfo(Component parent) { AbstractDialog.showInformationDialog(parent, "Log display is not applicable!\nThe color palette must contain only positive slider values.", "Information"); }
@Override public void actionPerformed(ActionEvent e) { File currentDirectory = getBandSetsDataDir(); JFileChooser fileChooser = new JFileChooser(currentDirectory); if (fileChooser.showOpenDialog(component.getParent()) == JFileChooser.APPROVE_OPTION) { File file = fileChooser.getSelectedFile(); try { BufferedReader reader = new BufferedReader(new FileReader(file)); List<String> bandNameList = new ArrayList<>(); String readBandName; while ((readBandName = reader.readLine()) != null) { bandNameList.add(readBandName); } reader.close(); String[] bandNames = bandNameList.toArray(new String[bandNameList.size()]); component.setReadRasterDataNodeNames(bandNames); } catch (IOException e1) { AbstractDialog.showInformationDialog(component.getParent(), "Could not load configuration", "Information"); } } } }
/** * Shows an information dialog on top of this dialog. * * @param infoMessage The message. */ public void showInformationDialog(String infoMessage) { showInformationDialog(infoMessage, getJDialog().getTitle()); }
String expression = variableItem.variableConfig.getExpr() != null ? variableItem.variableConfig.getExpr().trim() : ""; if (StringUtils.isNullOrEmpty(expression)) { AbstractDialog.showInformationDialog(getParent(), "The source band could not be created. The expression is empty.", "Information"); return false; AbstractDialog.showInformationDialog(getParent(), "The source band could not be created. The name is empty.", "Information"); return false; AbstractDialog.showInformationDialog(getParent(), message, "Information"); return false;
private boolean editVariableItem(VariableItem variableItem, int rowIndex) { final Product contextProduct = binningFormModel.getContextProduct(); if (contextProduct == null) { AbstractDialog.showInformationDialog(grid, "At least one source product must be set first", "Information"); return false;
AbstractDialog.showInformationDialog(window, "Use the geometry tools to add new points, lines or polygons.\n" + "You can then use the select tool to select and modify the shape\n" +