Friday Mar 12, 2010

[BUG in preview2] Blank document when you use Text Fill of Label

Unfortunately, we discovered serious bug in the Preview2 of JavaFX Composer. Thank you, v.petrovic.rs for discovering and reporting the problem. As there is a workaround to this problem and the JavaFX Composer is still in Preview "only" we will not provide a patch for this bug.

 Problem description:

If you set any value to a "Text Fill" property of any Label component, then first you will start seeing the IllegalStateException in the
console. If you save and close such a design, then you will NOT be able to reopen it anymore.The design will open as empty / blank

Workaround:

  1. Open your Main.fxc file in an external file editor.
  2. Find all lines that starts like this:  <Reference name="textFill" >
  3. Delete all these lines and save the file.
  4. Now you should be able to open the design file in NB IDE again.
  5. Do NOT set any "Text Fill" property on any Label component using a specific value.
  6. Instead open the property editor for the property. In dialog, check "Use Text Fill resolved from field:" radio-button and enter your color into the text-field below. The color must be entered as a custom-code e.g. javafx.scene.paint.Color.BLACK
  7. This way the "Text Fill" color will NOT be visualized in the design view and you will be able to open your design.  


About

NetBeans JavaFX Composer blog

Search

Categories
Archives
« April 2014
SunMonTueWedThuFriSat
  
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
   
       
Today