Stec Records Forum

Tools to make music

News: Note that we check all new user requests for spam violations. If you believe you have been rejected unfairly please contact us and we will attempt to resolve it with you. - Stecrew

Deprecated setLabel still used by NetBeans (Read 7527 times)

  • Administrator
  • Full Member
  • Lexicon Repairs
  • Posts: 120
  • Karma: +0/-0
  • Stec Records Forum PD
    • The Jukeyard
They have a 6.9 version out now
Mapex Pro M Maple standard, Pearl 800 series cymbal stands, Vex hi hat stand, Pearl P201P double bass pedals, Tama mid level throne, All Zildjian A cymbals, 21" Rock Ride, 18" med thin crash, 16" med thin crash, 10" splash, 14" new beat hi hats.

  • Administrator
  • Hero Member
  • bob
  • Posts: 773
  • Karma: +0/-0
  • Time reveals truth.
    • Bob Sellon's Home Page
For Netbeans 6.7.1, when setting text on buttons, use the "text" property NOT the "label" property.  They are related and will fill each other in but if you put the text in the "label" field, Netbeans will generate code using the deprecated setLabel method. 

If you enter the text into the "text" property, it uses setText which is still available.

From looking at the properties list, it looks the same but, because of "special bond" between the properties, the first field to be filled in wins.

This is a Netbeans bug/upgrade issue. Haven't checked 6.8 yet.

This is a typical error message:

C:\mydrive\projectfolder\ProjectFile.java:436: warning: [deprecation] setLabel(java.lang.String) in javax.swing.AbstractButton has been deprecated