Netbeans 6.9.1 and JavaFX formatter

Is there any idea why Netbeans 6.9RC1 has a better javafx formatter than 6.9.1?
I'm always using the formatter with below configuration.
extend tab to space = no
all curly brackets are on new line
Netbeans 6.9 RC1 has deficiency in some points:
-insert a before a.content[i]
-i18n strings : ##""
-in string expressions: "...{some-expression}"
But Netbeans 6.9.1 has also same bugs. Even worse. My 800 lines of code become 1000 lines when I ran the formatter (adding extra spaces after each keyword).
I wonder whether the fx team is using the formatter in netbeans. I really ask this not for criticizing. Before 6.9.1, I guessed the problem of formatter was that only small code segments were tested.
But in 6.9.1, some sample codes in formatter are also wrong formatted.

Michael Schmid wrote:
Wohoo,
starting as a forum newbie....again :s
Anyway, I've run into some troubles during the setup of my very first J2EE 6 project in Netbeans. I've installed Netbeans 6.9.1 and the included Glassfish v3 server runtime. Then I've created a new J2EE 6 project using Netbeans J2EE project wizard. Said wizard has an option: "Use shared library directory". I ticked this option and specified the shared library directory to be "lib". Then I've added JAR files to it, but somehow this JARs are not added to the classpath of the dependent EJB and Web project. Any time I try to import a class from one of the EAR libraries I get the compile-time ClassNotFound error in the IDE.
I'm a seasoned Eclipse user, and only recently have switched over to Netbeans (mostly out of curiosity). In Eclipse the ${EarProject}/lib folder was automatically recognized as the EAR's lib folder, and any JAR files added to it where available for all J2EE modules in the EAR project. After consulting the integrated Netbeans help on the topic I was convinced that this should work the same in Netbeans. Can any experienced Netbeans developer assist me in this please?
PS: I'm sorry if this is the inappropriate forum category, but the old "Netbeans" category from the Sun Forums seems to have disappeared during the forum transition.
EDIT: on an unrelated note I'd like to bring to your attention that this is the first "real Java question" in this forum :D ("Wohoo this is new" posts don't count)
Edited by: 791078 on 24.09.2010 18:27You are right, these are the wrong forums. Post your question here: http://forums.netbeans.org/ , if you want help from people who regularly userNetbeans.

Similar Messages

  • Netbeans version and JavaFx

    Hi guys
    It's a bit unclear at this stage as to what to do to get Netbeans and Javafx updated correctly.
    Do I need to still be downloading the Development version of Netbeans or have the plugin fixes been applied to Netbeans 7.01 now?
    The new development Netbeans indicates that it supports JavaFx as part of the package.. so does that mean you still need to install all of the plugins?
    It's confusing and slowing down development a lot - especially with updating javafx across multiple machines and the documentation is not covering
    how best to move from one build of Javafx to the next and how to also ensure Netbeans is setup correctly.
    -- some history since build 42 we could not package our app with netbeans. So we installed the development netbeans and had to muck around with the platform
    manager to get it to work with javafx. It has been somewhat inconsistent across several machines also - some with win7 and some XP.
    I understand that being part of a beta requires some patience but some guidance in how others are keeping their windows based development environments working properly
    would be great!

    You need to use the latest beta of NetBeans 7.1. I suspect the older version you downloaded is using JFX1.x.
    See this: http://netbeans.org/kb/docs/java/javafx-setup.html
    Regarding your threading model, there is a new API for threading but I wouldn't say it's much simpler or easier - at best, more powerful.
    There doesn't seem to be any good official docco on this however (seems like a big important topic so this is weird - maybe I just missed it). The closest is this slightly outdated article: http://fxexperience.com/2011/07/worker-threading-in-javafx-2-0/
    You may also find this useful: Thoughts on best practices for busy/wait and threads?
    If you have further questions on this stuff, probably best to start a new forum topic (or reply to the threading one above) - this thread is starting to lose relevance to it's original topic.
    Cheers,
    zonski

  • Netbeans 7 and JavaFX plugin

    Am I the only one who cannot get the JavaFX plugin to work with Netbeans 7?
    Have downloaded NB 7
    Have installed Javafx 2.0 runtime
    Have downloaded and installed javafx 2.0 nb plugins according to the installation instructions.
    Then restarting gives errors about NB plugins - which have to be disabled before continuing.
    Have tried on two PCs and had the same problem. The nb plugins seem to destroy basic functionality in Netbeans (cannot create new projects)

    Hi guys,
    can any one tell me where to find .NMB files .
    i installed Javafx run time and javafx 2.0 net beans plug in. but later i tried to add plugin in netbeans 7.0 but i couldn't find any .nmb files.
    please let me know how to overcome this issue.
    regards
    JavafxUser

  • Netbeans 7.1 - Error: package javafx.* does not exist

    when i open a project/directory made by old netbeans version as groovyfx as found in http://groovyfx.org/ (but the same occur in other cases) i change the library in default fx library but all the import javafx fail.
    what can i do?
    lorenzo

    Netbeans/Java is not lying to you. The package does not exist, so it does not exist. Figure out what you did wrong, perhaps by examining the Netbeans documentation on both the javafx plugin and how to manage the classpath of a project.

  • Is it possible to have java and javafx project types combined ?.

    Today, in NetBeans (not sure about the eclipse world) one has to decide between a "Java" project or a "JavaFX" project.
    Why can't these two be combined ?.
    For e.g, when I try to add JavaFX files (script, classes) to a Java Project it fails to compile. I poked around Netbeans and googled a bit and could'nt find any answers.
    The only way that I can make it work is to create a JavaFX project and Java code to it.
    In situations where one is attempting to "add" JavaFX to an existing Java/Swing app the current approach is too weird and abnormal.
    For e.g Amy Fowler's excellent guide http://weblogs.java.net/blog/2009/06/10/insiders-guide-mixing-swing-and-javafx should be such that I should be able to "simply" add JavaFX code and NetBeans should take care of the plumbing. (calling javafx compiler, adding the right jars for runtime ...)
    /rk

    I'm not sure how JavaFX works, but it is built rather differently from "normal" Java (Single threaded, high level of abstraction from the actual implementation, etc). It is easy to use Java classes inside a JavaFX class, but the reverse is not true.
    Plus, though this part is technically fixable, some classes installed inside the JRE don't seem to work by default in a netbeans JavaFX project.

  • NetBeans 6.9.1 with JavaFX 1.3.1 issues.

    My understanding is that the NetBeans 6.9.1 is the only decent IDE right now for JavaFX 1.3.1.
    There are two issues of that IDE.
    1.
    Even if I run JavaFX apps with "Standard Execution" model, the IDE will force me to start the HTTP server. Can I disable that HTTP server? What is the purpose of that HTTP server anyway? I have not activated the "Java Web and EE" module yet in the IDE.
    2. The javaw.exe consumes 500 MB RAM and I have stopped running my JavaFX applications. Again, everything is in "Standard Execution" model and "Java Web and EE" deactivated.
    I am not sure if they are JavaFX related or purely IDE problems.

    I have NetBeans 6.5.1 and WebLogic 10.3. I tried to add WebLogic server in NetBeans and it could not recoganise the WL directory I entered. I tried ...\bea, ...\bea\wlserver_10.3, ...\bea\user_projects\domains\base_domain and ...\bea\user_projects\domains\base_domain\servers\AdminServer. None worked.
    Some other Internet site seems to suggest that this is a bug.
    Gang

  • Build java and javafx applications

    Hello everybody! Currently, I am building a netbeans project that consist of java and javax applications and the questions are :
    1. How to call java object in javafx object or it reverse. Which one the better?
    2. How to compile and run the project that consist of java and javafx applications.
    Help me, please!Thank's

    Also, If you want to call JavaFX methods from Java you can use interface and have the JavaFX class extend it (interfaces are extended in JavaFX)
    For example, make interface FXAdapter.java
    interface FXAdapter {
         public void modifyLayout();
    }And in your FX class
    public class FXClass extends FXAdapter {
         public override function modifyLayout() : Void { /*Implementation*/ }
    }Now in your java class you can ask for FXAdapter as a parameter and pass a FXClass object

  • Netbeans 7.2.1 JavafxApplication JavaFX Scene Builder Error: Cause is null

    Hi.
    I'm using windows 7 x32, Netbeans IDE 7.2.1, JavaFX Scene Builder 1.0
    http://www.gop.edu.tr/errimage/javafxerr10.png
    http://www.gop.edu.tr/errimage/javafxerr11.png
    http://www.gop.edu.tr/errimage/javafxerr12.png
    http://www.gop.edu.tr/errimage/javafxerr13.png
    http://www.gop.edu.tr/errimage/javafxerr14.png
    Open File Failed
    Error loading file 'D:/cihan/Belgelerim/NetBeansProjects/JavaFXApplication6/src/javafxapplication6/Sample.fxml'.
    Cause is null

    Surprising. Your hardware should run Scene Builder without any trouble.
    With Java 7 U5 I run SceneBuilder 1.0 b44 on Win XP 32-bit and 1 G of RAM, with -Xmx1024m.
    Aren't you facing an issue with Java ? do you run successfully other Java applications of a comparable size ?
    You may also download the Scene Builder samples: according you've Ant and FX handy you can run them command line.
    For what is about removing or modifying the -Xmx option the answer is no, this can't be done in this release.
    Regards

  • JavaServer Faces and JavaFX

    Is JavaServer Faces and JavaFX the same?

    Nope, Java FX was only announced in May 2007 whereas JSF has been around for a few years now. JSF is a framework and JavaFX are a series of products.
    Try looking up Wikipedia for the info:
    http://en.wikipedia.org/wiki/Java_FX
    http://en.wikipedia.org/wiki/Java_Server_Faces
    Illu

  • Netbeans 6.9.1 and bundled tomcat

    I have installed a clean version of netbeans 6.9.1 bundled with tomcat and glassfish. We have moved to netbeans from eclipse. All was working fine until about a week ago. We can start tomcat fine, from within netbeans. But when it comes to restarting or stopping the tomcat server from within netbeans, netbeans attempts to stop it for about 2 minutes and then reports: Stopping of tomcat failed. This means that everytime we want to stop tomcat we have to tell netbeans to stop tomcat and then end java.exe from task manager. No config files have changed, as far as I am aware.
    Any ideas are appreciated!
    P.S. Tomcat is 6.0.26

    hi;
    I am mexican and sorry for english, well lets see, there are a botton then you select a server, click on it "add" then appear alist off servers for default, down appear a textbox called Name, set tomcat 4, then click next select catalina home fo tomcat 4 and other features, most work but, I have just used it to configure firts time the tomcat 6, dont know if that works to tomcat 4.
    thanks on advance
    Miguel Villalobos

  • Binding issue between POJO properties and JavaFX components

    Currently, what I want to do is use bidirectionnal binding between POJO properties and JavaFX components.
    For example, if the property is a String, a Textfield will be generated and binded with it.
    My POJOs are generated by JAXB.
    To do that, I proceeded as followed :
    In order to make the binding works I changed the default generation of JAXB
    I created a factory which takes a class instance at input and return a Map containing the POJO properties as key and the JavaFX components as value
    I displayed this map in a JFXPanel
    Here is a sample of the factory  :
    public static Map<Field, Node> createComponents(Object obj) throws NoSuchMethodException
               Map<Field, Node> map = new LinkedHashMap<Field, Node>();
               for (final Field field : obj.getClass().getDeclaredFields())
                   @SuppressWarnings("rawtypes")
                   Class fieldType = field.getType();
                   if (fieldType.equals(boolean.class) || (fieldType.equals(Boolean.class))) //Boolean
                       map.put(field, createBool(obj, field));
                   else if (fieldType.equals(int.class) || (fieldType.equals(Integer.class))) //Integer
                      map.put(field, createInt(obj, field));
                   else if (fieldType.equals(BigInteger.class)) //BigInteger
                      map.put(field, createBigInt(obj, field));
                   else if (fieldType.equals(long.class) || fieldType.equals(Long.class)) //Long
                      map.put(field, createLong(obj, field));
                   else if (fieldType.equals(String.class)) //String
                      map.put(field, createString(obj, field));
               return map;  
    public static Node createBool(Object obj, final Field field) throws NoSuchMethodException
       System.out.println(field.getType().getSimpleName() + " spotted");
       JavaBeanBooleanProperty boolProperty = JavaBeanBooleanPropertyBuilder.create().bean(obj).name(field.getName()).build();
      boolProperty.addListener(new ChangeListener<Boolean>() {
       @Override
       public void changed(ObservableValue<? extends Boolean> arg0, Boolean arg1, Boolean arg2)
      prettyPrinter(field, arg1, arg2);
       CheckBox cb = new CheckBox();
      cb.setText(" : " + field.getName());
      cb.selectedProperty().bindBidirectional(boolProperty);
       return cb;}
    So, the problem I have is : Sometimes the binding will work and sometimes it won't. For example, the binding is working unless I changed the declaration property order in the POJO, or unless I resized the panel where components are displayed.
    Does anybody have an idea of what I am doing wrong ?
    Thanks,
    Bastien

    You may like to look at the PropertySheet from ControlsFX.
    Not sure if it does what you want, but the concept appears similar.

  • Difference between Java applet and JavaFX

    Hello, all!
    I am studying javaFX in general. As far as I understand there is no main difference between java applet and javafx, except javafx has different syntax and library simple to use. Is it right?

    Basically, yes. But as you point out, it is supposed to be faster to develop in JavaFX...
    For example, Processing allows to export to applet, and is strong on doing graphics, but to see if user has clicked on a circle, you have to check the mouse coordinates against the circle coordinates, or create your own Circle class: it is at a much lower level.
    Likewise, you can use gaming frameworks like Slick2D or PulpCore, but they might be lacking on GUI (but perhaps faster). Or use Apache's Pivot, strong on GUI, but perhaps lacking a bit on graphics and animation.
    It depends on your needs, if you prefer to stick to Java, etc.

  • Package javafx.json and javafx.gui not found

    hi ,
    getting package javafx.json and javafx.gui not found errors.... have the package names changed ,, if so pls tell new names of these packages ......

    Hi Josh,
    thanks for your quick reply. I agree that javafx.gui has been replaced by javafx.scene package.
    But can't find reference to javafx.json package.
    Saw its use on http://blogs.sun.com/clarkeman/entry/javafx_script_and_json_weather .
    I'm trying to pass a json from my java code and use it in my javafx code. But in javafx code it comes as plain string

  • Netbeans and JavaFX

    I am new to Netbeans and am only using it for the JavaFX integration (IntelliJ user) so I am not sure if I am dealing with my ignorance of Netbeans or some JavaFX idiosyncrasy.
    However, when I try to organize my JavaFX code into package structure (rather than using a single default package) and go to run it I get NoClassDef exceptions on my main class. It looks like netbeans automatically packages up the files into a jar and runs it from a jar. I took a peek inside the generated jar and Netbeans is not maintaining the package structure inside the jar it is just putting all the classes at the root of the jar (hence the NoClassDefs).
    How can I get Netbeans to maintain the package structure inside the jar?
    Does JavaFX use the "package" keyword the same way as Java does?

    Yep, after I was able to get my classes in a package structure (rather than default package) I discovered that.
    I couldn't at first get my classes out of the default package. I am spoiled by IntelliJ which changes/adds package statements when you move classes. Netbeans did not automatically add the package statement when I moved from the default package to a package structure. Nor did it warn me that the classes were missing a package statement and/or the package statement didn't match its package location.

  • Netbeans Platform Application and JavaFX CSS API

    I'm using JavaFX in my Netbeans Platform Application. I load JavaFX scene with next code:
    SwingUtilities.invokeLater(new Runnable()
                    @Override
                    public void run()
                        javaFxPanel.setSize(getSize());
                        add(javaFxPanel, BorderLayout.CENTER);
                        Platform.runLater(new Runnable() {
                            @Override
                            public void run() {
                                    Group branchNode = new Group();
                                    Scene scene = new Scene(branchNode);
                                    try{
                                        scene.getStylesheets().add("C:\\Xlab\\pandora\\branches\\simon-welcome-screen\\TraineeGuiApp\\modules\\ui\\welcomescreen\\main.css");
                                    catch(Exception e)
                                       Exceptions.printStackTrace(e);
                                    Rectangle rect = new Rectangle(100,100);
                                    rect.setLayoutX(50);
                                    rect.setLayoutY(50);
                                    rect.getStyleClass().add("my-rect");
                                    ((Group)scene.getRoot()).getChildren().add(rect);
                                    // Add scene to panel
                                    javaFxPanel.setScene(scene);
                                    javaFxPanel.setVisible(true);
                        //Application.launch(FXApplication.class, null);
                });As you can see i provide absolute path to my css file. CSS file and class that i want to use it from are in same package. I also tried providing just a "main.css" string to scene.getStylesheets().add("main.css"); method.
    I have no idea why this is not working. Any suggestions?
    Edited by: user8867321 on 1.9.2011 9:56

    Admittedly, the stylesheet path handling is pretty bad. If you can see the .css file in your browser, then you have a valid URL. You can also use Class.getResource("blah").toExternalForm() to get the right URL string. For example, if I have my .css file in the same directory as Main.java, then I could do scene.getStylesheets().add(Main.class.getResource("sample.css").toExternalForm());

Maybe you are looking for