• Join/Login
  • Business Software
  • Open Source Software
  • For Vendors
  • Blog
  • About
  • More
    • Articles
    • Create
    • SourceForge Podcast
    • Site Documentation
    • Subscribe to our Newsletter
    • Support Request
SourceForge logo
For Vendors Help Create Join Login
SourceForge logo
Business Software
Open Source Software
SourceForge Podcast
Resources
  • Articles
  • Case Studies
  • Blog
Menu
  • Help
  • Create
  • Join
  • Login
  • Home
  • Browse
  • Echo Point
  • Bugs

DefaultProgressBarRenderer - Property Name Mismatch

Status: Beta
Brought to you by: bbakerman, phillipb, rainsill
  • Summary
  • Files
  • Reviews
  • Support
  • Mailing Lists
  • Tickets ▾
    • Bugs
    • Support Requests
    • Patches
    • Feature Requests
  • News
  • Discussion
  • Code
Menu ▾ ▴
  • Create Ticket
  • View Stats

Group

  • v1.0_(example)

Searches

  • Changes
  • Closed Tickets
  • Open Tickets

Help

  • Formatting Help

#46 DefaultProgressBarRenderer - Property Name Mismatch

v1.0_(example)
open
nobody
Interface (example) (1)
5
2006-06-23
2006-06-23
Benjamin Schmaus
No

The following code in
'echopointng.progressbar.DefaultProgressBarRenderer'
results in a ClassCastException:

boolean isPainted =
Boolean.TRUE.equals(getRP(pb,ProgressBar.PROPERTY_PROGRESS_STRING_PAINTED,fallbackStyle));
if (isPainted) {
String text = (String)
getRP(pb,ProgressBar.PROPERTY_PROGRESS_STRING_PAINTED,fallbackStyle);
_drawText(g, width, height, text, clrForeGround);
}

I think this code should be written as:

boolean isPainted =
Boolean.TRUE.equals(getRP(pb,ProgressBar.PROPERTY_PROGRESS_STRING_PAINTED,fallbackStyle));
if (isPainted) {
String text = (String)
getRP(pb,ProgressBar.PROPERTY_PROGRESS_STRING,fallbackStyle);
_drawText(g, width, height, text, clrForeGround);
}

Attached is a patch file.

Discussion

  • Benjamin Schmaus

    Benjamin Schmaus - 2006-06-23
     
    progress-bar-renderer.txt
    If you would like to refer to this comment somewhere else in this project, copy and paste the following link:

Log in to post a comment.

SourceForge
  • Create a Project
  • Open Source Software
  • Business Software
  • Top Downloaded Projects
Company
  • About
  • Team
  • SourceForge Headquarters
    1320 Columbia Street Suite 310
    San Diego, CA 92101
    +1 (858) 422-6466
Resources
  • Support
  • Site Documentation
  • Site Status
  • SourceForge Reviews
SourceForge logo
© 2026 Slashdot Media. All Rights Reserved.
Terms Privacy Opt Out Advertise
MongoDB Logo MongoDB