Changeset 868
- Timestamp:
- 01/20/2011 04:55:10 PM (10 years ago)
- Location:
- AgentMind/branches/FAtiMA-Modular/WorldTest/src
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
AgentMind/branches/FAtiMA-Modular/WorldTest/src/UserInterface.java
r841 r868 74 74 75 75 76 77 76 public UserInterface(WorldTest world_in, boolean simplifiedVersion) throws IOException { 78 77 78 79 79 Box caseBox = null, timeBox = null, locationBox = null, infoBox = null,queryBox = null, attributeBox = null; 80 80 Box userBox = null; 81 81 82 _world = world_in; 82 83 _r = new Random(); 83 84 85 84 _frame = new JFrame("WorldTest User Interface"); 86 85 _frame.getContentPane().setLayout(new BoxLayout(_frame.getContentPane(),BoxLayout.Y_AXIS)); 87 86 _frame.setSize(500,800); 88 87 _frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); 89 90 88 textArea = new JTextArea(40, 200); 91 89 JScrollPane scrollPane = new JScrollPane(textArea); 92 90 scrollPane.setVerticalScrollBarPolicy( 93 91 JScrollPane.VERTICAL_SCROLLBAR_ALWAYS); 94 92 _frame.getContentPane().add(scrollPane); 93 95 94 // Create the combo box 96 95 inputList = new JComboBox(); 97 96 98 _frame.getContentPane().add(scrollPane);97 99 98 100 99 /* -
AgentMind/branches/FAtiMA-Modular/WorldTest/src/WorldTest.java
r841 r868 5 5 import java.util.ArrayList; 6 6 7 import javax.swing.JFileChooser; 8 import javax.swing.JPanel; 7 9 import javax.xml.parsers.ParserConfigurationException; 8 10 import javax.xml.parsers.SAXParser; … … 13 15 import FAtiMA.Core.deliberativeLayer.plan.Step; 14 16 import FAtiMA.Core.sensorEffector.SpeechAct; 17 import FAtiMA.Core.util.parsers.ActionsLoaderHandler; 15 18 import FAtiMA.Core.util.parsers.ScenarioLoaderHandler; 16 import FAtiMA.Core.util.parsers.ActionsLoaderHandler;17 19 import Language.LactException; 18 20 import Language.LanguageEngine; … … 49 51 private LanguageEngine _agentLanguage; 50 52 private LanguageEngine _userLanguage; 51 private UserInterface _userInterface;53 private static UserInterface _userInterface; 52 54 private String _userOptionsFile; 53 55 private GretaAgent _ga; … … 56 58 static public void main(String args[]) throws Exception{ 57 59 int i; 60 58 61 ArrayList<String> objects = new ArrayList<String>(); 62 63 //JFileChooser fc = new JFileChooser(); 64 //fc.showOpenDialog(new JPanel()); 65 59 66 60 67 if (args.length == 2){ … … 71 78 72 79 boolean simplifiedVersion = false; 80 73 81 if(args[6] != null){ 74 82 simplifiedVersion = new Boolean(args[6]);
Note: See TracChangeset
for help on using the changeset viewer.