private String showEditUrlDialog(String oldUrl)
{
- String input = (String) JOptionPane
+ String input = (String) JvOptionPane
.showInternalInputDialog(
this,
MessageManager.getString("label.url:"),
new URL(input);
} catch (MalformedURLException ex)
{
- JOptionPane.showMessageDialog(this,
- MessageManager.getString("label.invalid_url"), "Warning",
+ JvOptionPane.showInternalMessageDialog(this,
+ MessageManager.getString("label.invalid_url"),
+ UIManager.getString("OptionPane.messageDialogTitle",
+ MessageManager.getLocale()),
JOptionPane.WARNING_MESSAGE);
return null;
}
};
private ActionListener moveUrlUpAction = (ActionEvent e) -> {
- int i = urlListTable.getSelectedRow();
+ final int i = urlListTable.getSelectedRow();
if (i > 0)
{
moveTableRow(i, i - 1);
};
private ActionListener moveUrlDownAction = (ActionEvent e) -> {
- int i = urlListTable.getSelectedRow();
+ final int i = urlListTable.getSelectedRow();
if (i >= 0 && i < urls.size() - 1)
{
moveTableRow(i, i + 1);