• Post Reply Bookmark Topic Watch Topic
  • New Topic

Call object from specific tab  RSS feed

 
Jacob Tyo
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have a JTabbedPane that creates a new tab every time a button is pressed. It then populates the tab with an object containing a few buttons and a text area.

However I also have an 'Open' button that opens a text file and fills the text area with the file.

My problem is, only the newly created tab is addressed. How can I call methods on objects inside a specific tab?
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!