summaryrefslogtreecommitdiff
path: root/src/cuchaz/enigma/gui/Gui.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/cuchaz/enigma/gui/Gui.java')
-rw-r--r--src/cuchaz/enigma/gui/Gui.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/cuchaz/enigma/gui/Gui.java b/src/cuchaz/enigma/gui/Gui.java
index dbfcba8..faa9b7b 100644
--- a/src/cuchaz/enigma/gui/Gui.java
+++ b/src/cuchaz/enigma/gui/Gui.java
@@ -1124,7 +1124,7 @@ public class Gui
1124 { 1124 {
1125 // init the text box 1125 // init the text box
1126 final JTextField text = new JTextField(); 1126 final JTextField text = new JTextField();
1127 text.setText( m_reference.getNameableEntry().getName() ); 1127 text.setText( m_reference.getNamableName() );
1128 text.setPreferredSize( new Dimension( 360, text.getPreferredSize().height ) ); 1128 text.setPreferredSize( new Dimension( 360, text.getPreferredSize().height ) );
1129 text.addKeyListener( new KeyAdapter( ) 1129 text.addKeyListener( new KeyAdapter( )
1130 { 1130 {
@@ -1175,7 +1175,7 @@ public class Gui
1175 // abort the rename 1175 // abort the rename
1176 JPanel panel = (JPanel)m_infoPanel.getComponent( 0 ); 1176 JPanel panel = (JPanel)m_infoPanel.getComponent( 0 );
1177 panel.remove( panel.getComponentCount() - 1 ); 1177 panel.remove( panel.getComponentCount() - 1 );
1178 panel.add( GuiTricks.unboldLabel( new JLabel( m_reference.getNameableEntry().getName(), JLabel.LEFT ) ) ); 1178 panel.add( GuiTricks.unboldLabel( new JLabel( m_reference.getNamableName(), JLabel.LEFT ) ) );
1179 1179
1180 m_editor.grabFocus(); 1180 m_editor.grabFocus();
1181 1181