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 270236 - Netbeans 8.2 - "TextField.inactiveForeground" and "TextField.inactiveBackground" not set by GUI designer
Summary: Netbeans 8.2 - "TextField.inactiveForeground" and "TextField.inactiveBackgrou...
Status: NEW
Alias: None
Product: guibuilder
Classification: Unclassified
Component: Code (show other bugs)
Version: 8.0.1
Hardware: PC All
: P3 normal (vote)
Assignee: issues@guibuilder
Depends on:
Reported: 2017-03-29 02:43 UTC by aplatypus
Modified: 2017-03-29 02:43 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Note You need to log in before you can comment on or make changes to this bug.
Description aplatypus 2017-03-29 02:43:50 UTC
Product Version = NetBeans IDE 8.2 (Build 201609300101)
Operating System = Windows 10 version 10.0 running on amd64
Java; VM; Vendor = 1.8.0_121
Runtime = Java HotSpot(TM) 64-Bit Server VM 25.121-b13

Reproducibility: Happens every time

  * for some reason this Netbeans 8.2 version "Report a New Task" only shows versions up to  v8.0.1 -- It is very confusing and annoying

  * Open a SWING form in the designer
  * Select a TextField
  * Set Foreground to "TextField.inactiveForeground", from the Swing Palette
  * Set Background to ""TextField.inactiveBackground"", from the Swing Palette
  * You can observe the generated code looks something like:
       jTextField01.setForeground(  javax.swing.UIManager.getDefaults().getColor("TextField.inactiveForeground") )
  * Put a breakpoint on the setForeground and setBackground calls.
  * Show the panel with the preview window
  * Run the program
  * Colours are not used!

  In the preview the selected colours work correctly

  At runtime, the calls to:

  Return null and the colours displayed are some kind of basic default from the GUI designer.

  This is confirmed by using the debugger to inspect those return values


 It seems these values are only available to the designer -- In which case the designer needs to fill-in the RGB or Hex value for the selected colours.