inputPanel.add(new JLabel(patternColumnIdentifier));\r
inputPanel.add(text);\r
\r
- int value = JOptionPane.showConfirmDialog(this, inputPanel, Messages\r
- .getString("addwellknown.dialog.title"), JOptionPane.OK_CANCEL_OPTION);\r
+ int value = JOptionPane.showConfirmDialog(\r
+ stigmata, inputPanel, Messages.getString("addwellknown.dialog.title"),\r
+ JOptionPane.OK_CANCEL_OPTION\r
+ );\r
if(value == JOptionPane.OK_OPTION){\r
int part = getPartType(checkPartType.getSelectedItem());\r
int match = getMatchType(matchType.getSelectedItem());\r
public void actionPerformed(ActionEvent e){\r
String t = text.getText().trim();\r
if(t.length() > 0){\r
+ String message = Messages.getString("wellknownclasschecker.wellknown.tooltip");\r
if(isWellknownClass(t)){\r
label.setIcon(Utility.getIcon("wellknownclasschecker.wellknown.icon"));\r
- label.setToolTipText(Messages.getString("wellknownclasschecker.wellknown.tooltip"));\r
}\r
else{\r
label.setIcon(Utility.getIcon("wellknownclasschecker.notwellknown.icon"));\r
- label.setToolTipText(Messages.getString("wellknownclasschecker.notwellknown.tooltip"));\r
+ message = Messages.getString("wellknownclasschecker.notwellknown.tooltip");\r
}\r
+ label.setToolTipText(message);\r
+ String dm = String.format(\r
+ "<html><body><dl><dt>%s</dt><dd>%s</dd></body></html>", t, message\r
+ );\r
+ JOptionPane.showMessageDialog(\r
+ stigmata, dm, Messages.getString("wellknownclasschecker.dialog.title"),\r
+ JOptionPane.INFORMATION_MESSAGE\r
+ );\r
}\r
}\r
};\r