Never mind that.. It's already solved, I got problem with the listener(see the code above)
Thanks :D
Type: Posts; User: LeonLanford
Never mind that.. It's already solved, I got problem with the listener(see the code above)
Thanks :D
I fixed my problem by just adding this
if (sel > 0)
setJudul(pane.getTitleAt(sel))
Thanks a lot :D
I don't use my customized tab, just use normal JTabbedPane
public class Main
{
public Main(){
}
public static void main(String[] args)
I put the remove function in this clearTab function
public void clearTab()
{
int i;
//for (i = 0; i < this.getTabCount(); i++)
//this.remove(i);
Hi, I'm making a small chat program. I'm having problem with JTabbedPane, I want to remove all tabs in the JTabbedPane when the chat window closed(setvisible=false).
Then if the user click another...