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

  • Home
  • SEARCH
  • 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 545611
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T10:46:47+00:00 2026-05-13T10:46:47+00:00

Product Version: NetBeans IDE 6.8 (Build 200912041610) Java: 1.6.0_17; Java HotSpot(TM) Client VM 14.3-b01

  • 0

Product Version: NetBeans IDE 6.8 (Build 200912041610)
Java: 1.6.0_17; Java HotSpot(TM) Client VM 14.3-b01
System: Windows 7 version 6.1 running on x86; Cp1252; en_GB (nb)

Hello, newbee java programmer here and wondering if someone can help, I have been having some problems updating a GUI for a desktop application in netbeans, here are the details:


my current application GUI works great, everything is appearing correctly.

when I update the GUI by adding a new label from the netbeans toolbox onto my form, and use the netbeans preview function, everything looks great

however when i run the application the new label has disappeared..

to try and understand the problem i ran the app in debug mode and stepped through the auto-generated initComponents() code

from debugging i believe the problem comes from this line of code:

TEST_lbl.setText(resourceMap.getString("TEST_lbl.text")); // NOI18N

after this line of code has executed TEST_lbl.setText is equal to null..

so the label is disappearing when i run the app because it has no text value to display…

i opened the resource map file in notepad (the .properties file) and it contains an entry “TEST_lbl.text=jLabel1” among the entries for all the other working controls…

so the properties file has the correct value, but resourceMap.getString is not retrieving it

i can work around this problem by changing the “Automatic Resource Management” option of the form from “All Resources” to “Off”

as a result this changes the auto-generated “setText” code line to:

TEST_lbl.setText("jLabel1"); 

and makes the label display correctly when the application runs


my first question would be, is this a known bug? or have i done something silly and accidently changed a setting someware?

if this is not a bug, how do i correct the problem without changing the resource management setting?

if this is a bug, what are the implications of turning off automatic resource management?

Thanks for the help, – Gaz

  • 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-13T10:46:48+00:00Added an answer on May 13, 2026 at 10:46 am

    I assume you’re running it under NB (Run > Run Main Project)?

    Try a clean build (Run > Clean and Build Main Project). That will usually fix it.

    It’s an issue of how the build system is structured.

    When you run the project in a clean repository (Run > Run Main Project):

    1. the .class files are written to $project/build/classes
    2. the non-class files are copied into the tree
    3. the whole thing is run from there.

    That works fine.

    If you “build” the project (Run > Build Main Project):
    1. the .class files are written to $project/build/classes
    2. the non-class files are copied into the tree
    3. the whole thing rolled up into a jar file.

    That also works fine.

    However, if you subsequently make changes and run the project, the class files and resources now appear in 2 places:

    • in build/classes
    • in the dist/project.jar

    This works OK as far as finding class files. Resources, however, are found in the jar first. So, at runtime, you code finds the outdated copy of the properties file in the jar, not the new one in the filesystem.

    Also: NB ignores case when finding a resource, but Sun’s JVM does not (not sure about IcedTea). So, if the wrong case is used NB may insist the file is there, but the JVM will not be able to find it.

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

Sidebar

Ask A Question

Stats

  • Questions 265k
  • Answers 265k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • Editorial Team
    Editorial Team added an answer Here's one solution, not the greatest, but will work fine… May 13, 2026 at 12:24 pm
  • Editorial Team
    Editorial Team added an answer I did some research and it looks like Redis might… May 13, 2026 at 12:24 pm
  • Editorial Team
    Editorial Team added an answer You can either set up 3 different forms, each with… May 13, 2026 at 12:24 pm

Related Questions

I keep telling myself that this should be simple, and yet I'm completely lost.
i have problem with libhid . i found that there 2 way 4 accessing
I'm designing a new system and finding that I am struggling with the structure
I need to get the product version and file version for a DLL or
I need to parse the file version and product version from windows exe and

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

Top Members

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.