/** * Set the details section of the error dialog. If the details are either * null or an empty string, then hide the details button and hide the detail * scroll pane. Otherwise, just set the details section. * * @param details Details to be shown in the detail section of the dialog. * This can be null if you do not want to display the details section of the * dialog. */ private void setDetails(String details) { if (details == null || details.equals("")) { detailButton.setVisible(false); } else { this.details.setText(details); detailButton.setVisible(true); } }
/** * Set the details section of the error dialog. If the details are either * null or an empty string, then hide the details button and hide the detail * scroll pane. Otherwise, just set the details section. * * @param details Details to be shown in the detail section of the dialog. * This can be null if you do not want to display the details section of the * dialog. */ private void setDetails(String details) { if (details == null || details.equals("")) { detailButton.setVisible(false); } else { this.details.setText(details); detailButton.setVisible(true); } }
/** * Set the details section of the error dialog. If the details are either * null or an empty string, then hide the details button and hide the detail * scroll pane. Otherwise, just set the details section. * * @param details Details to be shown in the detail section of the dialog. * This can be null if you do not want to display the details section of the * dialog. */ private void setDetails(String details) { if (details == null || details.equals("")) { detailButton.setVisible(false); } else { this.details.setText(details); detailButton.setVisible(true); } }
/** * Set the details section of the error dialog. If the details are either * null or an empty string, then hide the details button and hide the detail * scroll pane. Otherwise, just set the details section. * * @param details Details to be shown in the detail section of the dialog. * This can be null if you do not want to display the details section of the * dialog. */ private void setDetails(String details) { if (details == null || details.equals("")) { detailButton.setVisible(false); } else { this.details.setText(details); detailButton.setVisible(true); } }
/** * Set the details section of the error dialog. If the details are either * null or an empty string, then hide the details button and hide the detail * scroll pane. Otherwise, just set the details section. * * @param details Details to be shown in the detail section of the dialog. * This can be null if you do not want to display the details section of the * dialog. */ private void setDetails(String details) { if (details == null || details.equals("")) { detailButton.setVisible(false); } else { this.details.setText(details); detailButton.setVisible(true); } }
public void visit(LinkModel link) { try { // make sure to reload editorPane.getDocument().putProperty(Document.StreamDescriptionProperty, null); // JW: editorPane defaults to asynchronous loading // no need to explicitly start a thread - really? editorPane.setPage(link.getURL()); link.setVisited(true); } catch (IOException e1) { editorPane.setText("<html>Error 404: couldn't show " + link.getURL() + " </html>"); } }
public void visit(LinkModel link) { try { // make sure to reload editorPane.getDocument().putProperty(Document.StreamDescriptionProperty, null); // JW: editorPane defaults to asynchronous loading // no need to explicitly start a thread - really? editorPane.setPage(link.getURL()); link.setVisited(true); } catch (IOException e1) { editorPane.setText("<html>Error 404: couldn't show " + link.getURL() + " </html>"); } }
public void visit(LinkModel link) { try { // make sure to reload editorPane.getDocument().putProperty(Document.StreamDescriptionProperty, null); // JW: editorPane defaults to asynchronous loading // no need to explicitly start a thread - really? editorPane.setPage(link.getURL()); link.setVisited(true); } catch (IOException e1) { editorPane.setText("<html>Error 404: couldn't show " + link.getURL() + " </html>"); } }
public void visit(LinkModel link) { try { // make sure to reload editorPane.getDocument().putProperty(Document.StreamDescriptionProperty, null); // JW: editorPane defaults to asynchronous loading // no need to explicitly start a thread - really? editorPane.setPage(link.getURL()); link.setVisited(true); } catch (IOException e1) { editorPane.setText("<html>Error 404: couldn't show " + link.getURL() + " </html>"); } }
public void visit(LinkModel link) { try { // make sure to reload editorPane.getDocument().putProperty(Document.StreamDescriptionProperty, null); // JW: editorPane defaults to asynchronous loading // no need to explicitly start a thread - really? editorPane.setPage(link.getURL()); link.setVisited(true); } catch (IOException e1) { editorPane.setText("<html>Error 404: couldn't show " + link.getURL() + " </html>"); } }
details.setText(details.getText()); details.setCaretPosition(0); } else if (collapsedHeight != 0) { //only collapse if the dialog has been expanded
details.setText(details.getText()); details.setCaretPosition(0); } else if (collapsedHeight != 0) { //only collapse if the dialog has been expanded
details.setText(details.getText()); details.setCaretPosition(0); } else if (collapsedHeight != 0) { //only collapse if the dialog has been expanded
details.setText(details.getText()); details.setCaretPosition(0); } else if (collapsedHeight != 0) { //only collapse if the dialog has been expanded
details.setText(details.getText()); details.setCaretPosition(0); } else if (collapsedHeight != 0) { //only collapse if the dialog has been expanded