mirror of
https://github.com/anas-elgarhy/Ayah-intellij.git
synced 2024-08-15 00:43:43 +00:00
[fix/typo] Fix the updateAyahDetails
method name
This commit is contained in:
parent
39c5978d0f
commit
e8a0dd8ed6
1 changed files with 4 additions and 4 deletions
|
@ -82,10 +82,10 @@ public class AyahDetailsDialog extends JDialog implements PlayerListener {
|
||||||
// Set the default selected item for the editionComboBox
|
// Set the default selected item for the editionComboBox
|
||||||
editionComboBoxModel.setSelectedItem(new ReadableEdition(ayah.getEdition()));
|
editionComboBoxModel.setSelectedItem(new ReadableEdition(ayah.getEdition()));
|
||||||
// Set the actual information about the ayah in the UI
|
// Set the actual information about the ayah in the UI
|
||||||
updateAhaDetails();
|
updateAyahDetails();
|
||||||
}
|
}
|
||||||
|
|
||||||
private void updateAhaDetails() {
|
private void updateAyahDetails() {
|
||||||
// Update the ayah details
|
// Update the ayah details
|
||||||
ayahTextArea.setText(ayah.getText());
|
ayahTextArea.setText(ayah.getText());
|
||||||
surahNameLabel.setText(ayah.getSurah().getName());
|
surahNameLabel.setText(ayah.getSurah().getName());
|
||||||
|
@ -142,7 +142,7 @@ public class AyahDetailsDialog extends JDialog implements PlayerListener {
|
||||||
editionComboBox.getSelectedItem())).getEdition();
|
editionComboBox.getSelectedItem())).getEdition();
|
||||||
try {
|
try {
|
||||||
ayah = Ayah.getAyah(ayah.getNumber(), selectedEdition);
|
ayah = Ayah.getAyah(ayah.getNumber(), selectedEdition);
|
||||||
updateAhaDetails();
|
updateAyahDetails();
|
||||||
} catch (final IOException ioException) {
|
} catch (final IOException ioException) {
|
||||||
ioException.printStackTrace();
|
ioException.printStackTrace();
|
||||||
JOptionPane.showMessageDialog(this,
|
JOptionPane.showMessageDialog(this,
|
||||||
|
@ -204,7 +204,7 @@ public class AyahDetailsDialog extends JDialog implements PlayerListener {
|
||||||
try {
|
try {
|
||||||
ayah = Ayah.getAyah(ayhNumber,
|
ayah = Ayah.getAyah(ayhNumber,
|
||||||
ayah.getEdition().getIdentifier());
|
ayah.getEdition().getIdentifier());
|
||||||
updateAhaDetails();
|
updateAyahDetails();
|
||||||
return true;
|
return true;
|
||||||
} catch (final IOException ex) {
|
} catch (final IOException ex) {
|
||||||
JOptionPane.showMessageDialog(this,
|
JOptionPane.showMessageDialog(this,
|
||||||
|
|
Loading…
Reference in a new issue