Search:

Type: Posts; User: LeonLanford

Search: Search took 0.17 seconds.

  1. Replies
    7
    Views
    2,392

    [SOLVED] Re: How to close all tabs in JTabbedPane?

    Never mind that.. It's already solved, I got problem with the listener(see the code above)
    Thanks :D
  2. Replies
    7
    Views
    2,392

    [SOLVED] Re: How to close all tabs in JTabbedPane?

    I fixed my problem by just adding this



    if (sel > 0)
    setJudul(pane.getTitleAt(sel))



    Thanks a lot :D
  3. Replies
    7
    Views
    2,392

    [SOLVED] Re: How to close all tabs in JTabbedPane?

    I don't use my customized tab, just use normal JTabbedPane



    public class Main
    {
    public Main(){
    }

    public static void main(String[] args)
  4. Replies
    7
    Views
    2,392

    [SOLVED] Re: How to close all tabs in JTabbedPane?

    I put the remove function in this clearTab function


    public void clearTab()
    {
    int i;

    //for (i = 0; i < this.getTabCount(); i++)
    //this.remove(i);
  5. Replies
    7
    Views
    2,392

    [SOLVED] How to close all tabs in JTabbedPane?

    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...
Results 1 to 5 of 5