• Post Reply Bookmark Topic Watch Topic
  • New Topic

GUI jTextField input not storing/displaying  RSS feed

 
James Rivera
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I've been at this for about a week now and I'm losing my mind. I'm trying to get data from a GUI input window into an ArrayList and back out via a JTable. I can get the array lists to print to the console within the input class, but I need to wire it to a data container and out through a different class. Here is code from one input class, and its corresponding output class:

Input:


output:


This code is linked to a back-end model with all of the relevant functions. The data container is set up as such:


And passed via a main class when the windows are opened, as follows:


I hope that wasn't too much code, or too little. I seem to post one or the other. Any help is greatly appreciated. Thanks for your time.
 
Tony Docherty
Bartender
Posts: 3271
82
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'm not entirely sure what you are trying to achieve and/or how your code relates to that goal, can you explain in plain English exactly what your program is supposed to be doing eg what the homework question is.
 
James Rivera
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
-Get classroom data from gui
-Store it in an array list tn the DataContainer class
-Display the data in a JTable in a different window
 
Tony Docherty
Bartender
Posts: 3271
82
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
That's not really a detailed description in plain English, it's a list of 3 points.
If you write out the problem in detail it's often easier to spot the classes required and interactions between those classes, but even from your notes you can pick out several classes. What do you think they are?
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!