/** * {@inheritDoc} <p> * Overridden to update the link format and hyperlink text. */ @Override public void setLocale(Locale l) { super.setLocale(l); updateLinkFormat(); todayLink.setText(getLinkFormat().format(new Object[]{getLinkDay()})); }
private void loadMRU() { net.miginfocom.swing.MigLayout migLayout1 = new net.miginfocom.swing.MigLayout(); migLayout1.setColumnConstraints("[pref]"); recentPanel.setLayout(migLayout1); MostRecentFiles mru = Lookup.getDefault().lookup(MostRecentFiles.class); for (String filePath : mru.getMRUFileList()) { JXHyperlink fileLink = new JXHyperlink(openAction); File file = new File(filePath); if (file.exists()) { fileLink.setText(file.getName()); fileLink.putClientProperty(LINK_PATH, file); recentPanel.add(fileLink, "wrap"); } } }
/** * {@inheritDoc} <p> * Overridden to update the link format and hyperlink text. */ @Override public void setLocale(Locale l) { super.setLocale(l); updateLinkFormat(); todayLink.setText(getLinkFormat().format(new Object[]{getLinkDay()})); }
/** * {@inheritDoc} <p> * Overridden to update the link format and hyperlink text. */ @Override public void setLocale(Locale l) { super.setLocale(l); updateLinkFormat(); todayLink.setText(getLinkFormat().format(new Object[]{getLinkDay()})); }
/** * {@inheritDoc} <p> * Overridden to update the link format and hyperlink text. */ @Override public void setLocale(Locale l) { super.setLocale(l); updateLinkFormat(); todayLink.setText(getLinkFormat().format(new Object[]{getLinkDay()})); }
/** * {@inheritDoc} <p> * Overridden to update the link format and hyperlink text. */ @Override public void setLocale(Locale l) { super.setLocale(l); updateLinkFormat(); todayLink.setText(getLinkFormat().format(new Object[]{getLinkDay()})); }
private void refreshUnit(boolean convert) { unitLink.setText(millimeter ? NbBundle.getMessage(UIExporterPDFPanel.class, "UIExporterPDFPanel.unitLink.millimeter") : NbBundle.getMessage(UIExporterPDFPanel.class, "UIExporterPDFPanel.unitLink.inch")); widthUnitLabel.setText(millimeter ? NbBundle.getMessage(UIExporterPDFPanel.class, "UIExporterPDFPanel.labelUnit.millimeter") : NbBundle.getMessage(UIExporterPDFPanel.class, "UIExporterPDFPanel.labelUnit.inch")); heightUnitLabel.setText(widthUnitLabel.getText());
fileLink.setText(fileName); fileLink.setToolTipText(tooltip); fileLink.putClientProperty(LINK_PATH, importer);
moreOptionsPanel.add(edgesMergeStrategyCombo, gridBagConstraints); moreOptionsLink.setText(org.openide.util.NbBundle.getMessage(ReportPanel.class, "ReportPanel.moreOptionsLink.text")); // NOI18N moreOptionsLink.setClickedColor(new java.awt.Color(0, 51, 255));
unitLink.setText(""); // NOI18N unitLink.setToolTipText(org.openide.util.NbBundle.getMessage(UIExporterPDFPanel.class, "UIExporterPDFPanel.unitLink.toolTipText")); // NOI18N unitLink.setFocusPainted(false);
private void showErrorMessageSunPkcs11ProviderNotAvailable() { final String sunReference = Constant.messages.getString("options.cert.error.pkcs11notavailable.sun.hyperlink"); final String ibmReference = Constant.messages.getString("options.cert.error.pkcs11notavailable.ibm.hyperlink"); Object[] hyperlinks = new Object[2]; try { JXHyperlink hyperlinkLabel = new JXHyperlink(); hyperlinkLabel.setURI(URI.create(sunReference)); hyperlinkLabel.setText(Constant.messages.getString("options.cert.error.pkcs11notavailable.sun.hyperlink.text")); hyperlinks[0] = hyperlinkLabel; hyperlinkLabel = new JXHyperlink(); hyperlinkLabel.setURI(URI.create(ibmReference)); hyperlinkLabel.setText(Constant.messages.getString("options.cert.error.pkcs11notavailable.ibm.hyperlink.text")); hyperlinks[1] = hyperlinkLabel; } catch (UnsupportedOperationException e) { // Show plain text instead of a hyperlink if the current platform doesn't support Desktop. hyperlinks[0] = sunReference; hyperlinks[1] = ibmReference; } JOptionPane.showMessageDialog(null, new Object[] { Constant.messages.getString("options.cert.error"), Constant.messages.getString("options.cert.error.pkcs11notavailable"), hyperlinks}, Constant.messages.getString("options.cert.label.client.cert"), JOptionPane.ERROR_MESSAGE); }