Revision 2314 org.gvsig.tools/library/trunk/org.gvsig.tools/org.gvsig.tools.swing/org.gvsig.tools.swing.impl/src/main/java/org/gvsig/tools/swing/impl/bookmarkshistory/DefaultBookmarksPanelView.java

View differences:

DefaultBookmarksPanelView.java
1 1
package org.gvsig.tools.swing.impl.bookmarkshistory;
2

  
2
import com.jeta.open.i18n.I18NUtils;
3 3
import com.jgoodies.forms.layout.CellConstraints;
4 4
import com.jgoodies.forms.layout.FormLayout;
5 5
import java.awt.BorderLayout;
......
25 25
   JList lstBookmarks = new JList();
26 26
   JLabel lblName = new JLabel();
27 27
   JLabel lblLastUse = new JLabel();
28
   JLabel lblExpression = new JLabel();
28
   JLabel lblLabel = new JLabel();
29 29
   JTextArea txtLabel = new JTextArea();
30 30
   JTextField txtName = new JTextField();
31 31
   JTextField txtLastUse = new JTextField();
......
153 153
      jpanel1.add(lblName,cc.xy(1,1));
154 154

  
155 155
      lblLastUse.setName("lblLastUse");
156
      lblLastUse.setText("_last_use");
156
      lblLastUse.setText("_Last_use");
157 157
      jpanel1.add(lblLastUse,cc.xy(1,3));
158 158

  
159
      lblExpression.setName("lblExpression");
160
      lblExpression.setText("_Expression");
161
      jpanel1.add(lblExpression,cc.xy(1,5));
159
      lblLabel.setName("lblLabel");
160
      lblLabel.setText("_Label");
161
      jpanel1.add(lblLabel,cc.xy(1,5));
162 162

  
163
      txtLabel.setName("txtExpression");
163
      txtLabel.setName("txtLabel");
164 164
      JScrollPane jscrollpane1 = new JScrollPane();
165 165
      jscrollpane1.setViewportView(txtLabel);
166 166
      jscrollpane1.setVerticalScrollBarPolicy(JScrollPane.VERTICAL_SCROLLBAR_AS_NEEDED);
......
186 186

  
187 187
      btnDelete.setActionCommand("Delete");
188 188
      btnDelete.setName("btnDelete");
189
      btnDelete.setText("Delete");
189
      btnDelete.setText("_Delete");
190 190
      jpanel1.add(btnDelete,cc.xy(1,1));
191 191

  
192 192
      btnModify.setActionCommand("Delete");
193 193
      btnModify.setName("btnModify");
194
      btnModify.setText("Modify");
194
      btnModify.setText("_Modify");
195 195
      jpanel1.add(btnModify,cc.xy(1,3));
196 196

  
197 197
      btnAccept.setActionCommand("Delete");
198 198
      btnAccept.setName("btnAccept");
199
      btnAccept.setText("Accept");
199
      btnAccept.setText("_Accept");
200 200
      jpanel1.add(btnAccept,cc.xy(1,5));
201 201

  
202 202
      btnDiscard.setActionCommand("Delete");
203 203
      btnDiscard.setName("btnDiscard");
204
      btnDiscard.setText("Discard");
204
      btnDiscard.setText("_Discard");
205 205
      jpanel1.add(btnDiscard,cc.xy(1,7));
206 206

  
207 207
      addFillComponents(jpanel1,new int[0],new int[]{ 2,4,6,8 });
......
217 217
      add(createPanel(), BorderLayout.CENTER);
218 218
   }
219 219

  
220
   public static void main(String[] args)
221
   {
222
      JFrame frame = new JFrame();
223
      frame.setSize(600, 400);
224
      frame.setLocation(100, 100);
225
      frame.getContentPane().add(new DefaultBookmarksPanelView());
226
      frame.setVisible(true);
227 220

  
228
      frame.addWindowListener( new WindowAdapter()
229
      {
230
         public void windowClosing( WindowEvent evt )
231
         {
232
            System.exit(0);
233
         }
234
      });
235
   }
236 221
}

Also available in: Unified diff