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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 11, 20262026-05-11T22:03:01+00:00 2026-05-11T22:03:01+00:00

I have a Swing based financial ticker, that will display a financial symbol the

  • 0

I have a Swing based financial ticker, that will display a financial symbol the price movement and an arrow for either up or down for each counter / company.

This ticker can have a lot on counters (up to 100), and see the need to cache the images symbols to boost performance.

I have tried following this article but fail to understand it, especially how the MediaTracker class is going to cache the images. From what i can see, i place the images in an array and still retrieve from the array.

Does anyone know how it works and is supposed to be used?

  • 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-11T22:03:01+00:00Added an answer on May 11, 2026 at 10:03 pm

    A MediaTracker will help you keep a track on loading lots of images, but that’s about it. Once all is loaded you’ll be need something like a good old Map with the images hashed against either the filename or the company name or ID.

    private Map<String,Image> imageCache = new HashMap<String,Image>();
    

    There’s a reasonable example of using a MediaTracker to load images on the 1.4 JavaDocs: http://java.sun.com/j2se/1.4.2/docs/api/java/awt/MediaTracker.html. Note that there’s no getImage() method, and you need an int id in order to track them. You have to maintain the BufferedImage references yourself, hence the HashMap<>.

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

Sidebar

Related Questions

I'm working on a Swing based project that will display large amounts of data
I'm making a swing based application where I have a JList that periodically get's
I have an application that is based on Swing, Spring 2.5.2, Hibernate 3.3.1. If
We have a swing based application that does complex processing on data. One of
We have a problem in our swing based application since we've upgraded our java
Background: I have written a java swing based client server application. The server is
I have to setup a basic JAVA application including a GUI based on swing.
I have a Swing application that connect directly to MySql Database for user authentication.
I have a swing application that uses some datas coming from an external mysql
i have a swing application that i would like to run on os x

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.