Skip to content
Snippets Groups Projects
Commit 0cb6f4b9 authored by Tassadit Leroul's avatar Tassadit Leroul Committed by Patrick MADELA
Browse files

CTRLDIFFRA-21

Class PreferenceFrame , 
"Default Exeeded gap "
parent 4d6b9fa8
No related branches found
No related tags found
No related merge requests found
...@@ -69,7 +69,6 @@ public class PreferencesFrame extends JDialog { ...@@ -69,7 +69,6 @@ public class PreferencesFrame extends JDialog {
@Override @Override
public void actionPerformed(final ActionEvent e) { public void actionPerformed(final ActionEvent e) {
PreferencesFrame.this.dispose(); PreferencesFrame.this.dispose();
} }
}); });
p.add(closeButton); p.add(closeButton);
...@@ -95,16 +94,16 @@ public class PreferencesFrame extends JDialog { ...@@ -95,16 +94,16 @@ public class PreferencesFrame extends JDialog {
} }
private void setReflectionsPreferencePanel() { private void setReflectionsPreferencePanel() {
final JPanel p = new JPanel(); final JPanel refPanel = new JPanel();
p.setBorder(BorderFactory.createTitledBorder("Reflection preference")); refPanel.setBorder(BorderFactory.createTitledBorder("Reflection preference"));
final Label gapLabel = new Label(); final Label gapLabel = new Label();
gapLabel.setText("Exceeded gap : "); gapLabel.setText("Default exceeded gap : ");
p.add(gapLabel, BorderLayout.CENTER); refPanel.add(gapLabel, BorderLayout.CENTER);
final AutoScrolledTextField gapTextField = new AutoScrolledTextField(); final AutoScrolledTextField gapTextField = new AutoScrolledTextField();
gapTextField.setColumns(10); gapTextField.setColumns(10);
gapTextField.setText(this.getControlBean().getLPSModel().getGap().toString()); gapTextField.setText(this.getControlBean().getLPSModel().getGap().toString());
p.add(gapTextField, BorderLayout.CENTER); refPanel.add(gapTextField, BorderLayout.CENTER);
gapTextField.getDocument().addDocumentListener(new DocumentListener() { gapTextField.getDocument().addDocumentListener(new DocumentListener() {
private void updateData() { private void updateData() {
...@@ -138,7 +137,7 @@ public class PreferencesFrame extends JDialog { ...@@ -138,7 +137,7 @@ public class PreferencesFrame extends JDialog {
// NOT USE // NOT USE
} }
}); });
this.getContentPane().add(p); this.getContentPane().add(refPanel);
} }
private void setUrlHelpPanel() { private void setUrlHelpPanel() {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment