• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

GUI

 
Swapan Golla
Ranch Hand
Posts: 32
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I was thinking of using a choice component for selecting the destination / originating airport fields in the gui. But the instructions say that only swing components should be used in the UI design. I am planning to output the results in a JTable anyway but choice is an AWT component. I dont know whether this is acceptable. Anybody, any thoughts ?
 
Matt DeLacey
Ranch Hand
Posts: 318
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I may be way off base here, and somebody please correct me if I am, but I wouldn't use ANY awt widgets. I have the feeling that that could be grounds for automatic failure. You can certainly implement a choice using swing components. You might look into a JCheckBox or JComboBox. Perhaps you can implement it with one of these. Having said that I AM using some of the awt event handlers. Maybe I'm being contradictory ! To close the window and a couple other things I'm using awt...now, I'm beginning to wonder if that is okay...Oh well, still mulling it over.
With Respect,
Matt
 
Swapan Golla
Ranch Hand
Posts: 32
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks for the response. Yeah, I know. I was using some of the AWT Event myself. How are you building your GUI by the way ?
 
Matt DeLacey
Ranch Hand
Posts: 318
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I used a JTable with a TableModel and ColumnModel to display the data. I have a JTextField to display info to the user (like interpret exceptions and give feedback to the user), and the I have a JToolbar with JMenus and JMenuItems (which I'm going to switch to JCheckBoxMenuItem, I believe) for getting input from the user. Right now, I'm struggling with criteriaFind. I have it so that it can just work, but the code is incredibly ugly. After that, it's time to start digging into RMI, I suppose.
With Respect,
Matt DeLacey
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic