Methapolis  0.27
 All Classes Namespaces Files Functions Variables Enumerator
TranslatedStringsTable.java
Go to the documentation of this file.
1 // This file is part of MicropolisJ.
2 // Copyright (C) 2013 Jason Long
3 // Portions Copyright (C) 1989-2007 Electronic Arts Inc.
4 //
5 // MicropolisJ is free software; you can redistribute it and/or modify
6 // it under the terms of the GNU GPLv3, with additional terms.
7 // See the README file, included in this distribution, for details.
8 
9 package micropolisj.util;
10 
11 import java.awt.*;
12 import javax.swing.*;
13 import javax.swing.table.*;
14 
15 public class TranslatedStringsTable extends JTable
16 {
17  public TranslatedStringsTable(TableModel tm)
18  {
19  super(tm);
20  setDefaultEditor(String.class, new DefaultCellEditor(new JTextField()));
21  }
22 }