Revision 457 org.gvsig.scripting/trunk/org.gvsig.scripting/org.gvsig.scripting.swing/org.gvsig.scripting.swing.impl/src/main/java/org/gvsig/scripting/swing/impl/composer/JNewScriptPanelLayout.java

View differences:

JNewScriptPanelLayout.java
14 14
import javax.swing.JTextArea;
15 15
import javax.swing.JTextField;
16 16

  
17
import org.gvsig.scripting.swing.api.ScriptingSwingLocator;
18
import org.gvsig.scripting.swing.api.ScriptingUIManager;
19

  
17 20
import com.jgoodies.forms.layout.CellConstraints;
18 21
import com.jgoodies.forms.layout.FormLayout;
19 22

  
......
29 32
   JPanel saveToPanel = new JPanel();
30 33
   JTextField createdBy = new JTextField();
31 34
   JTextField version = new JTextField();
35
   private ScriptingUIManager uimanager;
32 36

  
33 37
   /**
34 38
    * Default constructor
35 39
    */
36 40
   public JNewScriptPanelLayout()
37 41
   {
42
	   this.uimanager = ScriptingSwingLocator.getUIManager();
38 43
      initializePanel();
39 44
   }
40 45

  
......
125 130
      jpanel1.setLayout(formlayout1);
126 131

  
127 132
      Name_.setName("Name:");
128
      Name_.setText("Name:");
133
      Name_.setText(this.uimanager.getTranslation("Name")+":");
129 134
      jpanel1.add(Name_,cc.xy(2,2));
130 135

  
131 136
      JLabel jlabel1 = new JLabel();
132
      jlabel1.setText("Description:");
137
      jlabel1.setText(this.uimanager.getTranslation("Description")+":");
133 138
      jpanel1.add(jlabel1,new CellConstraints(2,4,1,1,CellConstraints.DEFAULT,CellConstraints.TOP));
134 139

  
135 140
      JLabel jlabel2 = new JLabel();
136
      jlabel2.setText("Type:");
141
      jlabel2.setText(this.uimanager.getTranslation("Type")+":");
137 142
      jpanel1.add(jlabel2,cc.xy(2,6));
138 143

  
139 144
      JLabel jlabel3 = new JLabel();
140
      jlabel3.setText("Language:");
145
      jlabel3.setText(this.uimanager.getTranslation("Language")+":");
141 146
      jpanel1.add(jlabel3,cc.xy(2,8));
142 147

  
143 148
      JLabel jlabel4 = new JLabel();
144
      jlabel4.setText("Save on:");
149
      jlabel4.setText(this.uimanager.getTranslation("Save")+":");
145 150
      jpanel1.add(jlabel4,cc.xy(2,10));
146 151

  
147 152
      JLabel jlabel5 = new JLabel();
148
      jlabel5.setText("Author:");
153
      jlabel5.setText(this.uimanager.getTranslation("Author")+":");
149 154
      jpanel1.add(jlabel5,cc.xy(2,13));
150 155

  
151 156
      JLabel jlabel6 = new JLabel();
152
      jlabel6.setText("Version:");
157
      jlabel6.setText(this.uimanager.getTranslation("Version")+":");
153 158
      jpanel1.add(jlabel6,cc.xy(2,15));
154 159

  
155 160
      name.setName("name");

Also available in: Unified diff