Win a copy of Penetration Testing Basics this week in the Security forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

General question about using a JTable from another class

Fernando Sanz
Ranch Hand
Posts: 101
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi guys,
I'm starting to write a small application (something like a diary to keep various tasks of the day).
There'll be a MainApp, with just a simple main() in it. And a DiaryApp that will call everything.
So, my DiaryApp will use a MyDiaryUI class, and a TasksTableUI class. The later extends JPanel.
Now, my problem is trying to display the JTable from TasksTableUI in my GUI.
Any general ideas tips about how to get this working?
PS: I don't post any code because I assume this is more of a design question than trying to repair some specific code. If anybody thinks that looking at the code would be helpfull at all, please let me know.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic