NetBeans 6.9 Beta has been released!

Since NetBeans 6.9 Beta, JavaFX Composer is a part of official NetBeans distribution. There have been significant improvements in JavaFX Composer since Preview 2.

  • Support for JavaFX 1.3 
  • More components
  • DataSources Query Language
  • Support for JavaFX Production Suite (FXD/FXZ formats)
  • Many usability improvements

Read more in What's new in JavaFX Composer in NetBeans 6.9 Beta.

Read more about NetBeans 6.9 Beta and download from netbeans.org.


Comments:

It would be nice if the Visual Editor allowed the creation of components or panels in a separate Design file. Anything more than a simple design will quickly run into "code too large" error. I tried hack around this by creating multiple Design Files and adding the root panel into the scene but since all of the components in the scene of a design file are declared def I couldn't add my panel into the scene.

Posted by Mauricio Lopez on April 28, 2010 at 08:09 AM CEST #

Hi,
We do not support this use-case visually but you may do it by coding:
1) Create a design and call it Main and design main part.
2) Create a design and call it Inner and design some sub-section.
3) In Inner design, select your "scene" node and set its "Generate Scene" property to FALSE.
4) In Main design, go to Source editor and write the following function to the Main class:

postinit {
def inner = Inner {};
insert inner.getDesignRootNodes() into scene.content;
}

5) This would use just a single Scene defined in Main. and after the Main design is initialized, it would create an instance of Inner design and inserts its root-level nodes to content of the scene in Main design.
6) Note that Inner.scene property does not exist.

Posted by David Kaspar on April 28, 2010 at 08:47 AM CEST #

This worked.
You can still use the State change functionality of the visual editor by creating a public function to update the state of Inner...

public function changeState(state:String) {
currentState.actual = currentState.findIndex(state);
}

in Main you will need to move "def inner = Inner {};" to outside of the postinit function.

Hopefully this use case will be supported in the future. Thanks for you help.

Posted by Mauricio Lopez on April 28, 2010 at 10:08 AM CEST #

Visually embedding designs is definitely in our plans for future releases.

Posted by David Kaspar on April 28, 2010 at 10:26 AM CEST #

Post a Comment:
Comments are closed for this entry.
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