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 8387035
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T18:06:24+00:00 2026-06-09T18:06:24+00:00

I am building a desktop app with Swing with similar functionality to Twitter. I

  • 0

I am building a desktop app with Swing with similar functionality to Twitter. I have a “feed” page where “tweets” are displayed.

I have the “tweets” in a JPanel and want to dynamically display new ones coming in by placing new “tweets” at the top of the JPanel and moving older ones down. I was trying to do this with MigLayout by using jpanel.add(tweet, "cell 0 0, wrap") however this didn’t work as intended and in order to get it to display with the layout I wanted I had to call jpanel.revalidate().

This is not ideal as there could be many tweets coming in every second and redrawing the panel can be quite slow. Is there anyway I can add new “tweets” to the top of the panel without redrawing?

  • 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-06-09T18:06:26+00:00Added an answer on June 9, 2026 at 6:06 pm

    Although dynamic layouts are possible, as shown here and here, I’d use a one-column JTable with a TableModel that reflects the pushdown stack effect you want, perhaps one having an internal Queue<Tweet>. JTable rendering is efficient, and the component works well in a JScrollPane.

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

Sidebar

Related Questions

From what I have seen, if you are building a OSX desktop HTML5 app
I'm building a desktop app in C# with Windows Forms. I have a custom
I have been using SQL CE for a desktop app I am building but
I'm building some desktop app in Java and i want to know what is
I'm building a desktop to-do list app, and in my UI I have a
I am building a new site, and I have a folder on desktop with
can anyone help me in building a desktop app that can compile java, c,
I am currently building an Adobe Air desktop app for a medium sized company
I am building a desktop app that will put a simple graphical HUD on
I'm building a desktop app that needs to communicate with a MS Access database.

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.