facebook

Dynamically add/replace componants

  1. MyEclipse Archived
  2.  > 
  3. Matisse/Swing UI Development
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #272205 Reply

    SkyBoris
    Member

    Hi,

    From a JTree event I’d like to add new tabs with custom panels inside. I created a tab, added a panel and I tried to replace, during execution, the default panel by my custom one:

    /** Creates new form MainApplication */
    public MainApplication() {
    initComponents();
    jPanel1 = null;
    jPanel1 = new PanelTest();
    }

    This has no effect and the manually created panel still appears… I’m a Java GUI beginner.

    Kind regards,
    Boris

    #272257 Reply

    Riyad Kalla
    Member

    Moving to OT > Soft Dev, Swing question

    Boris can you describe a user-flow to me? I might be able to help.

Viewing 2 posts - 1 through 2 (of 2 total)
Reply To: Dynamically add/replace componants

You must be logged in to post in the forum log in