Coder Social home page Coder Social logo

Comments (4)

 avatar commented on May 24, 2024

Hrm. I just found a work-around that does away with the JFrame and gets it to update properly, but am unsure of the consequences.

If I call updateUI() on the JProgressBar after each change of value, it works, Not sure why. Can't say I'm overly familiar with how that method works.

from substance.

kirill-grouchnikov avatar kirill-grouchnikov commented on May 24, 2024

Since this is not the "primary intended" usage of this library, I would need to see a small, standalone and complete sample that reproduces this issue under the latest dev builds.

Note that the simpler the setup is, the higher the chances are that I'll get to carve out a chunk of time to take a look at it. There are a lot of moving pieces at play in the Swing rendering pipeline, and without being able to reproduce this issue I can't tell where exactly it fails.

from substance.

 avatar commented on May 24, 2024

Okay. That's going to take some time to put together.

My current project is not really stand-alone, nor is it small, but my thinking is I can reproduce this bug in a more compact form by painting to a BufferedImage and then displaying that on-screen in a more regular fashion.

So, gimme a few hours. Maybe a day.

from substance.

 avatar commented on May 24, 2024

All-right, got that done. The attached file should have everything you need to demo this yourself, except for the substance and trident jars (I assume you have them on hand, hehe). All that need be done to see the tests in action is to drop 'substance.jar' and 'trident.jar' into the 'lib' directory and then run the main jar file. Those names need to be exact.

I included the Ant script I used to build this, source code and a little readme file (kind of terse version of this message, in case you forget what you're looking at).

I tested this with the build that's marked as version 7.1.00-dev, as obtained from here, since you said you wanted it tested against a dev build. I noticed some pretty bizarre behavior from the progress bar that doesn't get calls to it's updateUI() method. Apparently it does update, but it updates incorrectly and can display some very wacky and inaccurate stuff. Most of the time it'll display as either 0% or 100%, while the text version displays perfectly fine.

substance-bug.zip

from substance.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.