Commit 01f77185 authored by Christian MOMON's avatar Christian MOMON
Browse files

Fixed Sonar review.

parent 3fa16c92
......@@ -122,8 +122,8 @@ public class FlatDB4GeoNamesWindow extends JFrame
});
mnFile.add(mntmDownloadIndexes);
JSeparator separator_2 = new JSeparator();
mnFile.add(separator_2);
JSeparator separator2 = new JSeparator();
mnFile.add(separator2);
JMenuItem mntmOpenDatabase = new JMenuItem("Open database…");
mntmOpenDatabase.addActionListener(new ActionListener()
......@@ -275,8 +275,8 @@ public class FlatDB4GeoNamesWindow extends JFrame
});
mnHelp.add(mntmHelp);
JSeparator separator_1 = new JSeparator();
mnHelp.add(separator_1);
JSeparator separator1 = new JSeparator();
mnHelp.add(separator1);
JMenuItem mntmAboutFlatdbgeonames = new JMenuItem("About FlatDB4GeoNames");
mntmAboutFlatdbgeonames.addActionListener(new ActionListener()
......
......@@ -174,8 +174,8 @@ public class BuildIndexesDialog extends JDialog
inputPanel.add(this.progressBarGlobal, "4, 12");
}
{
JLabel lblNewLabel_1 = new JLabel("word_seek.index:");
inputPanel.add(lblNewLabel_1, "2, 14, right, default");
JLabel lblNewLabel1 = new JLabel("word_seek.index:");
inputPanel.add(lblNewLabel1, "2, 14, right, default");
}
{
this.progressBarWordSeekIndex = new JProgressBar();
......
......@@ -83,7 +83,7 @@ public class TutorialDialog extends JDialog
{
JEditorPane txtpnTutorial = new JEditorPane("text/html", "");
txtpnTutorial.setEditable(false);
txtpnTutorial.setText(""); //$NON-NLS-1$
txtpnTutorial.setText("");
scrollPane.setViewportView(txtpnTutorial);
// ///////////////////////////:
try
......
......@@ -128,7 +128,7 @@ public class IndexOfWordSeeks
long dataSeek = Long.parseLong(seekString);
this.data.seek(dataSeek);
// String line = this.data.readLine();
String line = readUTFLine(this.data); // this.data.readLine();
String line = readUTFLine(this.data);
result.add(line);
}
}
......
......@@ -90,14 +90,14 @@ public class FlatDB4GeoNamesRequestPanel extends JPanel
add(queryPanel, BorderLayout.NORTH);
queryPanel.setLayout(new BoxLayout(queryPanel, BoxLayout.Y_AXIS));
JPanel panel_1 = new JPanel();
queryPanel.add(panel_1);
panel_1.setLayout(new FormLayout(new ColumnSpec[] { FormFactory.RELATED_GAP_COLSPEC, FormFactory.DEFAULT_COLSPEC, FormFactory.RELATED_GAP_COLSPEC, ColumnSpec.decode("default:grow"),
JPanel panel1 = new JPanel();
queryPanel.add(panel1);
panel1.setLayout(new FormLayout(new ColumnSpec[] { FormFactory.RELATED_GAP_COLSPEC, FormFactory.DEFAULT_COLSPEC, FormFactory.RELATED_GAP_COLSPEC, ColumnSpec.decode("default:grow"),
FormFactory.RELATED_GAP_COLSPEC, FormFactory.DEFAULT_COLSPEC, FormFactory.RELATED_GAP_COLSPEC, }, new RowSpec[] { FormFactory.RELATED_GAP_ROWSPEC, FormFactory.DEFAULT_ROWSPEC,
FormFactory.DEFAULT_ROWSPEC, }));
JLabel lblInput = new JLabel("Input:");
panel_1.add(lblInput, "2, 2");
panel1.add(lblInput, "2, 2");
this.txtfldInput = new JTextField();
this.txtfldInput.addKeyListener(new KeyAdapter()
......@@ -113,7 +113,7 @@ public class FlatDB4GeoNamesRequestPanel extends JPanel
}
});
panel_1.add(this.txtfldInput, "4, 2");
panel1.add(this.txtfldInput, "4, 2");
this.txtfldInput.setColumns(50);
this.btnSearch = new JButton("Search");
......@@ -162,10 +162,10 @@ public class FlatDB4GeoNamesRequestPanel extends JPanel
}
}
});
panel_1.add(this.btnSearch, "6, 2");
panel1.add(this.btnSearch, "6, 2");
this.lblTips = new JLabel("(space = AND, comma = OR)");
panel_1.add(this.lblTips, "4, 3, right, default");
panel1.add(this.lblTips, "4, 3, right, default");
JPanel panel_5 = new JPanel();
queryPanel.add(panel_5);
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment