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

refreshing the jtabbedpane

 
mohan rajv
Ranch Hand
Posts: 30
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
in my GUI i have a jtree and jtabbedpane.
if i click any element in the jtree i will get a new tab in jtabbedpane. and there is a submit button in my panel.and while submitting that panel i am changing the title for tat panel using jtabbedPaneObject.setTitleAt("newTitle");
but it is not changing the title of that panel.what might be the error?

thanks..
 
Michael Dunn
Ranch Hand
Posts: 4632
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
> but it is not changing the title of that panel.what might be the error?

we shouldn't have to guess.

try posting some simplified code that we can compile/run and see EXACTLY what you're doing
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic