Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6978341
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T17:44:34+00:00 2026-05-27T17:44:34+00:00

I am using JTree to display channels and members on a network application. What

  • 0

I am using JTree to display channels and members on a network application.

What I wanted to ask is how should I handle the case where members move to different channels.
Should I create the tree again (generated from List some objects are other lists) or
I can do that dynamically(tree needs to be final to add listeners) .

Also how would each case affect the performance? The tree isn’t huge something like 10 parents 10 leaf.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-27T17:44:35+00:00Added an answer on May 27, 2026 at 5:44 pm

    1) you can recreate and populate JTree from its Model, descriptions about DefaultTreeModel, examples here

    2) all changes for GUI would be moved to the BackGround Task(s), please look at SwingWorker or Runnable#Thread (most easiest way), but Runnable#Thread required wrapping all output (Swing methods) to the invokeLater

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I've got a JTree which I'm using to display some (unsurprisingly) hierarchical data. Part
I want to write an application using jsTree that would display and manipulate directory
I am using a jTree structure to display the structure of the project the
Is it possible to assign different icons to different nodes in a JTree using
When using a JTree , a user object of a DefaultMutableTreeNode can be set.
Using TortoiseSVN against VisualSVN I delete a source file that I should not have
In Swing when using a JTree/JList/JTable selecting an item changes its background color. Is
I'm using a custom TreeModel for a JTree. I have an issue when I
I have 2 trees in my program. Iam using JTree's clearselection() method to clear
I am developing a small desktop application in JAVA using Netbeans. I place a

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.