• Post Reply Bookmark Topic Watch Topic
  • New Topic

Tab pane problem

 
Ranganath Junpal
Ranch Hand
Posts: 76
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi

I want to have a close (x)button on the tab portion of the JTabPane so that whenever user click on(X same as the one in wnidows)tab pane should get closed
can any 1 help me
 
Campbell Ritchie
Marshal
Posts: 52580
119
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Never tried myself, but have you found the example in the Java tutorial (not the first example)? I think that does what you want. See if you can understand the code attached.
[ March 02, 2007: Message edited by: Campbell Ritchie ]
 
Ranganath Junpal
Ranch Hand
Posts: 76
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks a lot man...
 
Campbell Ritchie
Marshal
Posts: 52580
119
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
. . . Only too pleased to be able to help.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!