• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

JTabbedPane and Instances

 
Amy Phillips
Ranch Hand
Posts: 280
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
I am having a little trouble displaying my class instances on the seperate panes of the JTabbedPane
In the TabbedPane class I create a TabbedPane as follows

Then I have a CreateOverview class where I lay out the components. At the moment the compiler is having trouble with line 2 of the above code but I am a little lost as to why.
If anyone can see why or give me any tips on how to go about getting the tabs to display panes I would be very grateful
Thanks, Amy
 
Craig Wood
Ranch Hand
Pie
Posts: 1535
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
 
Amy Phillips
Ranch Hand
Posts: 280
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks Craig
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic