This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 28301 - Desire equiv. to NbBundle.DEBUG mode for images
Summary: Desire equiv. to NbBundle.DEBUG mode for images
Status: NEW
Alias: None
Product: platform
Classification: Unclassified
Component: -- Other -- (show other bugs)
Version: 3.x
Hardware: All All
: P4 blocker (vote)
Assignee: issues@platform
Keywords: I18N
Depends on:
Blocks: 22156
  Show dependency tree
Reported: 2002-10-27 16:05 UTC by Jesse Glick
Modified: 2009-01-06 14:58 UTC (History)
0 users

See Also:
Exception Reporter:


Note You need to log in before you can comment on or make changes to this bug.
Description Jesse Glick 2002-10-27 16:05:42 UTC
-J-Dorg.openide.util.NbBundle.DEBUG=true is useful
for finding (1) unlocalized text strings, (2)
where a given localized text string visible in the
GUI came from.

Suggest that this flag also turn on a mode where
all localized image lookups
(NbBundle.getLocalizedFile, nbresloc:) also
display the image origin - this is useful e.g.
when figuring out what to brand. It may also be
useful for figuring out which unlocalized images
ought to be localized.

With the switch on, when a GIF/PNG/JPEG image were
loaded via a localized lookup, NbBundle would (1)
print the physical URL (typically a jar: URL) to
console together with a sequence number (decimal
or hexadecimal); (2) draw the sequence number over
the image and supply an fake image file URL (use
URL constructor with URLStreamHandler param?) with
the modified content (must make sure this works
with alpha channels). To draw the sequence number,
can use Java2D perhaps, or just hardcode bitmaps
for [0123456789ABCDEF]. Suggest they be in 8x8
blocks with 1-pixel internal margins, so a typical
16x16 icon could fit a 4-digit number. For
reliable visibility, may want to draw sequence
number in black with yellow trim.
Comment 1 Jesse Glick 2002-10-27 16:07:37 UTC
Would provide a quick way to determine which images are already
localized, as requested in issue #22156.