Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How to use getModel() with JTabbedPane ?

 
nic den
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi im testing writeobject and readobject with jtabbedPane

i know how to add new tab in a jtabbedPane

what i would like to know now is how to save them in a file object with writeObject by using getModel() of the JTabbedPane
and after when i open my program again the tabs that i had b4 are still there

i know that i have to use read object for that part

but i dont know how to make it work

ty in advance

here is a sample code that i try to make it work but it doesnt

 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic