JavaFX Visual GUI Builder - not using FXML - only based on pure Java

The decision to provide a pure Java based JavaFX API activates the pure Java people who where FXML resistent in the past.
JavaFX is the future ... the last few month when I check the new possibilities I came slowly but surely to this opinion...
The Scene Build is still based on FXML. So ... for the pure Java developer there is no advantage to use it ... only to see what components are available in the JavaFX standard I see no advantage for me to use it. I won't create JavaFX clients based on FXML.
What's the future plan...is there a Project in the World who want to provide a Visual GUI Builder who produce pure Java based JavaFX Code like Eclipse Window Builder do it for Swing or SWT or JBuilder for Swing many years ago.
That's the main reason that JavaFX get successful in the future. A software architect who has to decide using JavaFX as the new Company Standard...will never do it without stomachache.
Do I miss some news?
Is there are NetBeans Version who can do it or a plugin I don't now?
Edited by: 984992 on 30.01.2013 14:24
Edited by: 984992 on 30.01.2013 14:30

I don't think you are getting it, or just making a big deal about it.
Currently SceneBuilder is connected to Netbeans using the FXML. It's not hard at all, nor is there a big issue. In the next few years Scenebuilder will be in Netbeans integrated, so it will be just like the swing gui builder. FX is still new, from a scripting lang, to a super powerful lang. FXML uses so little code.... Also you can do things either with, or without FXML, FXML IS NOT NEEDED IN FX AT ALL, only limited on Scene Builder.
This is the FXML I am using for a dice game I am creating. Not much at all.
<?xml version="1.0" encoding="UTF-8"?>
<?import java.lang.*?>
<?import java.util.*?>
<?import javafx.collections.*?>
<?import javafx.scene.chart.*?>
<?import javafx.scene.control.*?>
<?import javafx.scene.image.*?>
<?import javafx.scene.layout.*?>
<?import javafx.scene.paint.*?>
<BorderPane fx:id="border" maxHeight="-Infinity" maxWidth="-Infinity" minHeight="-Infinity" minWidth="-Infinity" prefHeight="785.0" prefWidth="1518.0" xmlns:fx="http://javafx.com/fxml" fx:controller="ZonkController">
<left>
<AnchorPane minHeight="86.0" minWidth="62.0" prefHeight="390.0" prefWidth="768.0">
<children>
<Button fx:id="button" layoutX="126.0" layoutY="90.0" onAction="#handleButtonAction" text="Click Me!" />
<Pane fx:id="pane" layoutX="737.0" prefHeight="390.0" prefWidth="211.0" />
</children>
</AnchorPane>
</left>
<right>
<AnchorPane prefHeight="386.0" prefWidth="460.0">
<children>
<BarChart fx:id="barChart" layoutX="7.0" layoutY="-10.0" prefWidth="460.0">
<xAxis>
<CategoryAxis fx:id="names" side="BOTTOM" />
</xAxis>
<yAxis>
<NumberAxis fx:id="scores" side="LEFT" />
</yAxis>
</BarChart>
</children>
</AnchorPane>
</right>
<top>
<ImageView fx:id="iv" fitHeight="394.24998969072755" fitWidth="525.6666641235352" pickOnBounds="true" preserveRatio="true" BorderPane.alignment="TOP_CENTER" />
</top>
</BorderPane>
It is all codecompleted like a class normally would, so there is nothing to worry about :)
.CSS isn't hard either.

Similar Messages

  • Modularizing large FX gui apps, esp. using fxml developed by Scene Builder

    StarterApp - One large java source file.
    Trying Out the JavaFX UI Controls (Using the JavaFX UI Controls)
    StageCoach is a simpler app, but with fxml, controller, and main code in separate files.
    Allows manipulation using Scene Builder.
    https://code.google.com/p/jfxtras/source/browse/ProJavaFX/Chapter03/StageCoach?repo=samples&r=322042d9ac293fcd9dd8f63e1664df45a0c4746f
    I was lead to these by the book, Pro JavaFX 8:
    http://www.apress.com/9781430265740
    Rich as it is, the StartApp is one big piece of code, with no modules such as an fxml file.
    By spreading out the code for StarterApp and StageCoach and studying it carefully
    I should be able to build a system as large as StarterApp, but as a three-file combo.
    StarterApp has nothing that deals with concurrency or persistence - those will be my jobs.
    I'm doing this because I'm building a large NLP app.
    It needs a GUI for future users.
    - Bob F

    Take a look at some app examples from the open-jfx repository
      https://wiki.openjdk.java.net/display/OpenJFX/Quick+Start
    For a smallish app, see the ConferenceScheduleApp:
       openjfx/8u-dev/rt: 3d138300d935 /apps/experiments/ConferenceScheduleApp/
    For a (much) larger app, see SceneBuilder:
       http://hg.openjdk.java.net/openjfx/8u-dev/rt/file/3d138300d935/apps/scenebuilder
       Ladstatt: Home made JavaFX SceneBuilder
    For a minimal framework which features FXML and dependency injection, see afterburner.fx:
       http://afterburner.adam-bien.com
    You can skip all of the stuff below if you don't like reading and just want to go code...
    In general for app code, use aggregation over inheritance in most places, though inheritance is useful sometimes.  Don't try to create your own controls by extending the Control class unless you are writing control libraries - that is complex and not well documented as well as largely unnecessary for app code.  Similarly PopupWindow isn't all that great or at least I have never found a need for it in app code - a basic Stage works fine for pretty much every case except perhaps very specialized things like context menus.  Java 8 has built-in dialogs and alerts in 8u40, so for standard dialogs or some reasonably customized dialogs, using those is better than creating your own.  If the standard controls aren't enough, try ControlsFX, it is (mainly) great and high quality.
    Let resizable layout managers do the layout work for you and use constraints in the layout managers and nodes rather than mucking around with fixed sized layouts or layout through binding.
    Don't try to implement a spreadsheet in a JavaFX TableView - just use the built-in controls for what they are good at and either develop a new control for specific functionality not provided by the built-in controls or just skip that feature if it would be too expensive to build it from scratch yourself (and it probably will be expensive - you just have to justify that against your project budget whether that is money or your own time).
    Make use of WebView to bring in web components (e.g. Google Docs or Google Maps).  Don't try and pass a lot of data back and forth between a WebView and your app.
    Don't do any style in code nor in FXML, put it all in a CSS style sheet.
    For medium sized apps - use FXML to design and mark-up your GUI, and use SceneBuilder to create and edit the FXML, don't hand code basic form style UIs - in the long run the FXML based app will be easier to maintain.
    For really small apps and learning tasks, write everything in code against the API so you understand that - use no FXML at all.
    With JavaFX you are writing user interfaces, follow basic user interface design heuristics for which there are some principles to keep in mind.
    Once you have a few FXML pages, passing parameters or sharing data between them is a question that most people run into as well as how to deal with navigation.  That navigation framework I linked is super basic and just meant for pretty simple applications.  A nicer framework which worked in general like a Browser navigation model would be useful - but I haven't seen a generic implementation of such a thing yet - I guess you could create one, but I definitely wouldn't start out trying to do that - instead focus on the basics of your application and get that implemented first.  If you end up needing a reasonably sophisticated navigation framework, eventually you will know it and can evaluate what to do then.
    You can do an awful lot with CSS and styling the built-in controls.  It really is very flexible.  Learn CSS and the JavaFX variant by reading general CSS tutorials (then forget everything HTML specific) and study in depth the JavaFX CSS reference guide and understand its extensions like looked up colors and derivation functions.  When you want to know how some inbuilt thing is styled, go to the modena.css source (which can be hideously obtuse and complicated).  Use ScenicView and SceneBuilder CSS analyzer to understand how CSS is applied to elements.  Don't style borders with boxes - use layered backgrounds, that is how every control modena.css works and how your app should also work.
    Deployment is a difficult topic - so sad and depressing.  For development, just build and run in your IDE.  For production, package the app as a self-contained application. Maybe one day there will be a better deployment model for JavaFX - but that is the best you can get for now.  Completely ignore webstart and web deployment models - any time spent investigating such technologies is completely wasted.
    Do not try to integrate JavaFX and Swing or SWT.  Just write pure JavaFX apps.
    For larger apps you intend to deploy to production, use Maven or Gradle as your build system (you can google the JavaFX plugins for each).  Do not spend any time with the stand-alone JavaFX packager or the JavaFX ant tasks and do not rely on your IDE to do your production builds.
    Get help to targeted questions on StackOverflow.
    Only code to Java 8+ and make use of functional programming techniques.
    Don't write multi-threaded apps unless you know what you are doing.  When you do write multi-threaded apps, use the JavaFX concurrency utilities.  Never modify the active scene graph from another thread, nor touch a property which might trigger an event which might modify the scene graph.  Do use the concurrency utilities if you have network I/O otherwise you will freeze your app while the network I/O occurs and that is a "bad thing".
    The Oracle JavaFX 8 documentation is good - read it and run a lot of the examples (except the ant based deployment ones and the Swing/SWT integration ones).
    Ensemble is great, play with it and study the code to see for the samples (which you can view within Ensemble).
    Binding is programming by side-effect, so be aware that when you change a property, it may trigger some potentially unrelated action through bindings or attached listeners.
    Programming JavaFX in any language other than Java is an experimental thing, so only do that if you like experimenting and are prepared to do so without a lot of support.
    Targeting embedded devices, iOS or Android for a JavaFX app is an experimental thing, so only do that if, yada, yada, yada.
    JavaFX is a mid-level UI system, not a full application stack - it abstracts away the basics like rendering, controls and animation but does not provide comprehensive OS hooks, navigation frameworks, model/view/presenter frameworks, full dependency injection, client/server messaging, data <-> controls serialization and deserialization, etc.  FXML is just a markup system with a binding capability to Java code.  JavaFX and FXML do not constitute a full application framework.  There is no widely-used full application framework for JavaFX.  Sure some people have tried to create one, but none of those solutions have achieved critical mass of usage and features - plus a one-size fits all application framework will never exist anyway - client applications (e.g. a game versus a line-of-business app) differ greatly and deserve completely different architectures.
    There are many things in the Java EE world which can be used in JavaFX (e.g., its dependency injection, its web socket or rest APIs and implementations, its server based systems to allow your app to access cloud based logic and storage, etc) - so feel free to use the bits you need, usually it's as simple as adding additional library dependencies to your maven or gradle project.  A typical medium sized JavaFX application will include multiple third party libraries (mostly non-UI libraries) to get its job done as this will be more convenient than coding everything against the JRE API - though there is an awful lot of out the box functionality you get from the JRE.
    JavaFX is more complicated to use than Delphi and in some respects doesn't supply as much functionality in terms of built-in stuff like data base backed tables (though it supplies a ton more functionality in style).  It is not easier to create a complete business app using JavaFX than it would be to create a similar thing in Microsoft Access in the 90's.  Such is progress.
    JavaFX is portable across desktop environments (OS X, Windows, Mac).  JavaFX apps have their own look and feel which is not like the native OS, but that is probably fine for a lot of apps.  AquaFX does an amazing job of making a JavaFX app looks like OS X apps (kudos to the creators of both AquaFX and the JavaFX built-in styling capabilities).
    Unlike some other portable frameworks like QT, you don't have to write C code, you can write Java code (which to me at least is a win).  Similarly unlike HTML/CSS/JavaScript you don't have to write untyped JavaScript or make use of some obscure code snippet you pulled off the web for your button control.  You don't have to use the web framework of the day which withered yesterday.  Instead you have the (benefit?) of hardly any framework at all for JavaFX.  You don't have to have your app live within a browser sandbox that another developer once described as the ghetto of application sandboxes.
    So, as compared to HTML - I think JavaFX is kinder to the developer, though end users don't really seem to care that much and are fairly accepting of HTML applications even when their functionality is often inferior to many more traditional GUI apps.  HTML is standardized, its full of standards, even the non-standard parts.  Everybody used to implement all the standards differently or make their own standards, however now the standards are so painstakingly, nitpickingly prescriptive that everybody implements pretty much the same thing - except when they don't.  JavaFX has no standard but its public API docs, it has just one implementation.  If you code against the API, your app is probably going to work forever - at least if you bundle the runtime with your app, cause if you don't you might end up like the poor guy in the previous question who can't figure out how to update his app specific CSS rules to get his app to look the same with a newer Java version.  JavaFX is a relatively niche technology and you don't have the legion of developers, tinkerers, industry investments and people just plain getting stuff done in any which way that you have with the whole HTML juggernaut.  The major thing that HTML provides that JavaFX does not is: Sharable, browsable deep links to stuff with search indexed content.  With HTML, Google will index it and you can link to and refer to other docs and other docs can link to yours.  It is the HT in HTML which makes the web so amazing and the F in FXML doesn't match it.  What is the F anyway?
    That's a huge wall'o'text.  Just some random thoughts and opinions.  All opinions are my own.  Your opinions may vary.  That's OK.  I don't think a discussion is needed.  If you would like any clarification or further advice you can ask in new questions.

  • Can not add pdf files to my e-mail-it just grinds on a 851kb file (11kb worked)not using gmail. windows xp. recently wnld java update.

    downloaded some java update for downloading support from Ontrack. SInce then firefox will not attach pdf files to my e-mail. not using g-mail, using yahoo. Windows XP. It will add small files (11kb) but just grinds on a 851kb file and never attaches it.If I choose to unclick "enable java" - the "attach files" box disappears from the attach files menu.

    '''Try Firefox Safe Mode''' to see if the problem goes away. Safe Mode is a troubleshooting mode, which disables most add-ons.
    ''(If you're not using it, switch to the Default theme.)''
    * You can open Firefox 4.0+ in Safe Mode by holding the '''Shift''' key when you open the Firefox desktop or Start menu shortcut.
    * Or open the Help menu and click on the '''Restart with Add-ons Disabled...''' menu item while Firefox is running.
    ''Once you get the pop-up, just select "'Start in Safe Mode"''
    '''''If the issue is not present in Firefox Safe Mode''''', your problem is probably caused by an extension, and you need to figure out which one. Please follow the [[Troubleshooting extensions and themes]] article for that.
    ''To exit the Firefox Safe Mode, just close Firefox and wait a few seconds before opening Firefox for normal use again.''
    ''When you figure out what's causing your issues, please let us know. It might help other users who have the same problem.''

  • Photo flow object not using thumbnails, only the primary image

    I'm currently evaluating the trial version of this to see if it's something we can tweak to the way we'd like it, and I can't seem to get the object to use the thumbnail views (presumably for the angled views to either side of the centered image).  What we're trying to do is to use a version of the image with a fixed location "tool tip" above it when it's centered and displayed at the full size, but use a "thumbnail" image that doesn't have this.  The intention is when an image is centered, a box will be above the image with a brief description (the powers that be want it stationary rather than hover with the mouse location), but the thumbnail views to either side will not have it.
    The link to the page using it is www.perleyhalladay.com/beta/index.html, and the XML file is www.perleyhalladay.com/beta/PhotoFlow/gallery.xml.  "magesFolder" is set to PhotoShow/images (relative to the location of index.html), and the images load fine...it's just that I've tried swapping thumbnail images to mix them up (even with the example version I downloaded), and it seems as though it's using the primary image for both the thumbnails and the centered version.  Is there a variable missing from the XML file or a PARAM missing from the HTML file that would enable/disable the use of thumbnails globally.
    Is this perhaps an undocumented limitation in the trial download version that would be remedied in the paid version, or is there something else amiss?

    If you are addressing some applicarion that someone created and is selling, you'll need to contact the seller to get details about their product.

  • Sincere Eclipse 3.0.2 build problems using a package for all Eclipse Java p

    Hi,
    I had the following problem:
    - jar-file put into a directory (for jdbc-access)
    - Environment variable set in Window/preferences/Java/BuildPath/ClassPathVariables:
    Name: classpath (could be any other name, does not correlate with WIN env. var.)
    Path: C:\java\eclipse\jars\mysql-connector-java-3.1.8-bin.jar
    - class-file was automatically built by Eclipse, error message:
    �. java.lang.ClassNotFoundException: com.mysql.jdbc.Driver
    In Windows I set the classpath environment variable to
    classpath=.;C:\java\eclipse\jars\mysql-connector-java-3.1.8-bin.jar
    In Windows/i.e., a DOS-Shell. It works
    As it didn�t work in Eclipse, I deleted Eclipse and installed it again (from an elder version I had on another workstation)
    After starting Eclipse asked me to rebuild all -> Yes (it then needed some time to do so)
    Then it worked
    So, right here I thought I knew how to go on in other projects using this jar-file, but:
    The same problem appears in another project, but it works in WIN/DOS command line, but not in Eclipse. Project/Clean und rebuilding automatically or manually doesn�t help.
    As a workaround for this project I did in
    Project/Properties/Java/BuildPath/Projects I marked a link to the project where it works (see above), and now it works, too.
    But I am not satisfied, I don�t like trial and error solutions.
    I suppose that Project/Clean doesn�t really clean properly.
    Has anybody made similar experience and knows the real solution?
    Thanks
    Michel

    JediKnight wrote:I didn't find it in AUR
    What search term did you use??  Here is monodevelop-git already in the AUR.
    It seems it may have been abandonded, but perhaps you could take over that package rather than starting a new one.
    Additionally, a patch is applied in that PKGBUILD.  Perhaps that could be needed to solve your problem.

  • Developing a JAVA GUI builder

    Hi,
    I've been a middle tier and back end developer mostly, and i've not much development on swing. By that i mean i did not get much into swing programming other than using netbeans gui designer or jdeveloper for front end user interfaces. I have a general knowledge about swing though, how to create a custom component and stuff like that.
    However, i have a personal project for which i'd really like to build a gui designer for myself. I know that i can find my through if i dig hard enough, but that means a lot of time. Yes, i can use one the existing gui builders, but this time i want to add a little bit of experience to my swing programming skills, so that i can develop tools for my own development more easily.
    Looking around, i see a lot of gui builders, some being open source, but none of them gives me the impressing of being a good example for me. Some of them (like netbeans gui building code) seems to large to examine, and not many simple examples for this seem to exist.
    In general, there appears to be a lack of guidance for this kind of development. Swing development resources are plenty, but what about a little more custimized goals like mine ?
    I want to create a simple designer with swing, but certainly this kind of task has it's tricks ? How should i represent components (txtbox, listbox, etc) on the designer ? Do i use swing components directly in the designer ? Or do i create representations of them ? What are the tips and tricks for this kind of task ?
    So, what kind of resources can i use for making this task easier for me ? Which books would be helpful ? Or any online resources for getting up to speed for creating a simple gui designer in java?
    I hope i could express myself clear enoug, and It'd be really appreciated if anyone could contribute about my next step
    Best regards

    If you actually do go about creating a visual GUi builder, 90% of your code will revolve around using the java.beans package. So you should start learning that first.
    Here is an example of how to build a visual GUI builder using the java.beans package:
    https://bean-builder.dev.java.net/guide/tutorial.html
    http://java.sun.com/j2se/1.4.2/docs/api/java/beans/package-summary.html

  • Jenkins can not connect Visual Studio Online(not git repository)

    I have seen some techinical document and tried some scenario.
    1. Alternative Authentication on my profile
        Usename(primary) is my company email address.
        Username(secondary) is none.
    2. set jenkins setup for TFS plug-in
         Tema Foundation Server is https://xxxxxxxx.visualstudio.com
         Project path is $Benchmark/BuildProcessTempletes
         Login name is my compalny email address
         Password is NO1 specified.
    3. execute build at jenkins and some error outputed.
         TF30063: You are not authorized to access https://xxxxxxxx.visualstudio.com
         FATAL: Executable returned an unexpected result code 100
         ERROR: null
    off courese i can login the VSO with VS or browser.
    How can i authorize Visual Studio Online from Jenkins?
    

    this link give me a solution.
    Basically, tf.exe which is bundled at Visual studio can not use VSO. Use Team Explore Anywhere.

  • Premiere Pro CC / Adobe Media Encode CC not using GTX980 EVGA

    Generation of movies using h.264 encoding is not using GPU. Based on the logs from video card there is no usage even if the selected renderer is Mercury Playback Engine GPU Acceleration (CUDA). How can I enable its usage?

    Hi mate, same here.. I can't do it work, simply.. I select GPU in Premiere and AME (gtx 970 in my PC and gt755M in my laptop, neither is working), GPU is 0% of use to do a simple video conversion.
    To show that is a Adobe problem, this guy create his own exporter plugin ( SHAME ON YOU ADOBE!). With it AME work very, very fast, but i have issues too when change the video format to MP4.
    NVidia GPU-accelerated H264-encoder plugin, ready for public testing
    I don't know what i do. I think Nvidia and Adobe messed up very bad this feature.. Nice Adobe, i have a good GPU but i have to wait very long times (1hr videos conversion) because you guys can't do a simple exporter plugin that use GPU power.. So, stop collecting our money only and GO TO IMPLEMENT OUR NEEDS! Have a nice day.

  • Using Terminal to program and test java.

    I bought a book on java and it says I should not use a JDK when first learning java.
    Right or wrong I would like to know how to use terminal to program and compile simple scripts.
    So my question is:
    How do you go about setting up the computer to use terminal to write and compile a java program?
    I know that’s pretty big question. I just need a link to some info on how to get started using terminal and java.
    If I use a text editor how do I set up a path to it using javac?
    Where can I find or link to this kind of info?

    David Bixler wrote:
    I bought a book on java and it says I should not use a JDK when first learning java.
    I think they mean IDE, considering that Java is the JDK. And I agree with that idea, not just for Java, but for any language.
    How do you go about setting up the computer to use terminal to write and compile a java program?
    There isn't anything to setup. Just run Terminal and type "vi hello.java" or "nano hello.java". To compile, type "javac hello.java".
    I know that’s pretty big question. I just need a link to some info on how to get started using terminal and java.
    That is not necessarily a big question, just fundamental. Try Google. It becomes second nature after a couple of decades so I don't really know where to tell you to look. People do tend to have a big list of links, hopefully they can contribute some.
    If I use a text editor how do I set up a path to it using javac?
    It should already be in your path.
    Where can I find or link to this kind of info?
    Try Google. People like it. You should find many pages similar to this.

  • Builiding animations using FXML or the Scene Builder in javaFX

    please i wanna know if its possible building user interfaces with dynamic nodes or animations using FXML or the Scenebuilder in JavaFX
    Elikem.

    HI,
    Currently SceneBuilder is still a baby v.1.x You can only create nodes and make some graphical , layout, stylesheets changes on them. The animation can't be done from the FXML so Scenebuilders dont have these concepts. You will need to have hard code for this. But I still think SceneBuilder is far more Flexible,fast and easy to build javafx application.
    Thanks
    Narayan

  • JavaFX 2.1 build b09 on Mac OS X not working?!

    I have downloaded JavaFX 2.1 build b09 and the samples for Mac OS X (10.7.2 / Apple Java 1.6.0_29-b11-402-11M3527 64-Bit).
    I unpacked the folder "javafx-sdk2.1.0-beta" in my home and the "javafx-samples-2.1.0-beta" in the "javafx-sdk2.1.0-beta"
    folder. Double clicking "BrickBreaker.jar", "Ensemble.jar" and "FXML-LoginDemo.jar" do not start any application. But instead a
    a few (-10) seconds after the java icon in the dock appears the "java" process crashes.
    The "SwingInterop.jar" sample and other swing applications like netbeans run as usual.

    Is there a certain way to install the javafx 2.1 runtime?There is an installer for Windows, but not for the Mac or Linux distributions yet - for those you currently just unzip the distributions.
    There is a feature request for an installer for Mac (http://javafx-jira.kenai.com/browse/RT-18147), but from the comments it is unclear whether an installer will be implemented or not.
    On Windows, after you have installed JavaFX you can just run the sample jars by double clicking on them because the launcher in the samples knows how to check to find the installed location of the JavaFX runtime.
    Why would they provide sample jar files for Mac if they will not work. For Mac, as there was no install, you probably need to run them using java -cp <path to jfxrt.jar> <samplename>.jar, so that the system knows where it can find the javafx runtime. However I don't have a Mac to test this. So, perhaps somebody who has a Mac can post how they run the JavaFX samples on this thread.

  • Not using the most recent checked in version of the web app DLL in Release build

    Hi folks
    Got some peculiar behaviour - I have three build configurations set up within VS2K13 for Debug, Release and DebugOnLive.
    There are some basic XML transformations to update emails, db-settings etc - all very simple and working.
    Needed to do a DebugOnLive build to test an emergency fix and everything built fine.  Tested on the pilot site, saw the fix was working and proceeded to rebuild for Release.
    Everything seemed great except the web-app DLL with the fix in that was used for the release build was not the latest version even though the pilot build had used the latest version.  I had to recheck in the DLL to get it to use the updated version!
    Is this behaviour 'by design' - it seems peculiar you would have to re-check in to change the build if all you are doing is swapping some settings?  You are fixed - all you are doing is building for a different configuration or am I misunderstanding?
    mmacneill123 (MCP)

    Hi Mmacneill123, 
    Thanks for your reply.
    You said that “the issue is that I have already checked in the changes…”, and you said “if I check in before 
    EVERY build, everything works fine!” too.
    You’re using the default build process template in your build definition? You configured these 3 configurations in your build definition to build your solution 3 times?
    If you remove that DebugForLive configuration, only configure Debug and Release in your solution and build definition to perform build, everything will works fine?
    After you changed the configuration from “DebugForLive” to Release, please check in on your solution first, then queue build definition to build your solution. After you changed the configuration each time, please check-in on your solution first,
    then perform build.
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • Determing JavaFX Chart Size using FXML

    Hello Guys,
    I'm working on a value marker for a line chart in JavaFX 2.2. I therefore used the answer on an existing question on stackoverflow and the example by Sergey Grinev is working fine. However, if I want to use FXML to add a chart instead of adding it hardcoded I have problems determing the size of the chart's background.
    I moved the initialization of the chart and the valueMarker to the initialize() method which the FXMLLoader automatically calls after the root element has been processed (see the note in the JavaFX Documentation). But if I now use the following code to determine the size of the chart's background it returns just 0.0 for every bound value:
    Node chartArea = chart.lookup(".chart-plot-background");
    Bounds chartAreaBounds = chartArea.localToScene(chartArea.getBoundsInLocal());
    The exact same code in the updateMarker() method returns the determined size of the chart's background on the second call. On the first call the bounds are set, but minX isn't correct. Here is my code:
    public class LineChartValueMarker extends Application {
       @FXML
       private LineChart<Number, Number> chart;
       @FXML
       private Line valueMarker;
       @FXML
       private NumberAxis yAxis;
       private XYChart.Series<Number, Number> series = new XYChart.Series<>();
       private void updateMarker() {
       Node chartArea = chart.lookup(".chart-plot-background");
       Bounds chartAreaBounds = chartArea.localToScene(chartArea
       .getBoundsInLocal());
       // SIZE OF THE CHART IS DETERMINED
       System.out.println(chartAreaBounds);
      valueMarker.setStartX(chartAreaBounds.getMinX());
      valueMarker.setEndX(chartAreaBounds.getMaxX());
       public void initialize() {
      series.getData().add(new XYChart.Data(0, 0));
      series.getData().add(new XYChart.Data(10, 20));
      chart.getData().addAll(series);
       // add new value on mouseclick for testing
      chart.setOnMouseClicked(new EventHandler<MouseEvent>() {
       @Override
       public void handle(MouseEvent t) {
      series.getData().add(
       new XYChart.Data(series.getData().size() * 10,
       30 + 50 * new Random().nextDouble()));
      updateMarker();
       // find chart area Node
       Node chartArea = chart.lookup(".chart-plot-background");
       Bounds chartAreaBounds = chartArea.localToScene(chartArea
       .getBoundsInLocal());
       // SIZE AND POSITION OF THE CHART IS 0.0
       System.out.println(chartAreaBounds);
       @Override
       public void start(Stage stage) throws IOException {
       FXMLLoader loader = new FXMLLoader();
       InputStream in = this.getClass().getResourceAsStream(
       "LineChartValueMarker.fxml");
      loader.setBuilderFactory(new JavaFXBuilderFactory());
      loader.setLocation(this.getClass().getResource(
       "LineChartValueMarker.fxml"));
       Pane pane = (Pane) loader.load(in);
       Scene scene = new Scene(pane);
      stage.setScene(scene);
      stage.show();
       public static void main(String[] args) {
      launch();
    I added upper case comments on the position in the code where I print the bounds (and I removed the update of the Y coordinate of the valueMarker). Here is the output:
    BoundingBox [minX:0.0, minY:0.0, minZ:0.0, width:0.0, height:0.0, depth:0.0, maxX:0.0, maxY:0.0, maxZ:0.0]
    BoundingBox [minX:45.0, minY:15.0, minZ:0.0, width:441.0, height:318.0, depth:0.0, maxX:486.0, maxY:333.0, maxZ:0.0]
    BoundingBox [minX:37.0, minY:15.0, minZ:0.0, width:449.0, height:318.0, depth:0.0, maxX:486.0, maxY:333.0, maxZ:0.0]
    The first output line comes from the initialize() method, the second line from the first call of updateMarker() (first mouseclick on the graph) and the third line from the second call of updateMarker() (second mouseclick on the graph) which finally returns the correct bound values of the chart's background.
    Now my question: How or when can I determine the correct size of the chart's background (best in the initialize() method)? I hope there's someone who can help, because I have no explanation for this behavior. Thank you!

    Thanks! Yes, indeed, that would work in that scenario. Although, I see now that I have to add more complexity in that I want to display multiple logical series. In other words, using the above as one logical series.  So, what I did was this:
    <...more code above here...>
    chart.setData(chartDataList);
    List<String> chartSeriesList = new ArrayList<String>();
    for (int i = 0; i < chartDataList.size(); i++) {
        Series<Number, Number> s = chartDataList.get(i);
        String seriesName = s.getName();
        if (!chartSeriesList.contains(seriesName)) {
            chartSeriesList.add(seriesName);
        s.getNode().getStyleClass()
            .removeAll("default-color0", "default-color1",
                        "default-color2", "default-color3",
                        "default-color4", "default-color5",
                        "default-color6", "default-color7");
    for (int i = 0; i < chartSeriesList.size(); i++) {
        String name = chartSeriesList.get(i);
        for (int j = 0; j < chartDataList.size(); j++) {
        Series<Number, Number> s = chartDataList.get(j);
            if (s.getName().equals(name)) {
                s.getNode().getStyleClass().add("default-color" + (i % 8));
                logger.debug("j="+j+", i="+i+", name="+s.getName() + ", default-color"+(i % 8));
    This works well to set all of the chart lines to the same color for a set of data series with the same name. However, now the dilemma is that the color of the chart line symbols don't match the lines.
    How can I coordinate the color of the symbols in the same manner?
    Message was edited by: 9686a1cf-675c-473c-8e15-7b5b929ef004

  • Using JFileChooser in GUI Builder / Matisse

    Would appreciate any help with how to modify the code created by the NetBeans GUI Builder / Matisse to use jFileChooser.
    I've added a Menu item to act as a file Open option, called OpenItem, and the GUI builder has added a listener which points to a method OpenItemActionPerformed:
    private void OpenItemActionPerformed(java.awt.event.ActionEvent evt) {                                        
            // TODO add your handling code here:
    } I have also added a jFileChooser component, named jFileChooser1, but if I try to use it in the OpenItemActionPerformed method I get an error.
    private void OpenItemActionPerformed(java.awt.event.ActionEvent evt) {                                        
           JFileChooser1.  
    }     shows error: "<identifier> expected" (as soon as I get to the dot).
    The variable seems to be defined:
    private void initComponents() {
            jFileChooser1 = new javax.swing.JFileChooser();
    }// Variables declaration - do not modify
    private javax.swing.JFileChooser jFileChooser1;
    // End of variables declaration
    Maybe I have gone about this the wrong way, so any clues as to either how I can get the jFileChooser1 variable to work or any way I can use JFilechooser with GUI Builder created application would be much appreciated.
    Thanx in advance.

    The following example creates a file chooser and displays it as first an open-file dialog and then as a save-file dialog:
        String filename = File.separator+"tmp";
        JFileChooser fc = new JFileChooser(new File(filename));
        // Show open dialog; this method does not return until the dialog is closed
        fc.showOpenDialog(frame);
        File selFile = fc.getSelectedFile();
        // Show save dialog; this method does not return until the dialog is closed
        fc.showSaveDialog(frame);
        selFile = fc.getSelectedFile();Here is a more elaborate example that creates two buttons that create and show file chooser dialogs.
        // This action creates and shows a modal open-file dialog.
        public class OpenFileAction extends AbstractAction {
            JFrame frame;
            JFileChooser chooser;
            OpenFileAction(JFrame frame, JFileChooser chooser) {
                super("Open...");
                this.chooser = chooser;
                this.frame = frame;
            public void actionPerformed(ActionEvent evt) {
                // Show dialog; this method does not return until dialog is closed
                chooser.showOpenDialog(frame);
                // Get the selected file
                File file = chooser.getSelectedFile();
        // This action creates and shows a modal save-file dialog.
        public class SaveFileAction extends AbstractAction {
            JFileChooser chooser;
            JFrame frame;
            SaveFileAction(JFrame frame, JFileChooser chooser) {
                super("Save As...");
                this.chooser = chooser;
                this.frame = frame;
            public void actionPerformed(ActionEvent evt) {
                // Show dialog; this method does not return until dialog is closed
                chooser.showSaveDialog(frame);
                // Get the selected file
                File file = chooser.getSelectedFile();
        };Here's some code that demonstrates the use of the actions:
        JFrame frame = new JFrame();
        // Create a file chooser
        String filename = File.separator+"tmp";
        JFileChooser fc = new JFileChooser(new File(filename));
        // Create the actions
        Action openAction = new OpenFileAction(frame, fc);
        Action saveAction = new SaveFileAction(frame, fc);
        // Create buttons for the actions
        JButton openButton = new JButton(openAction);
        JButton saveButton = new JButton(saveAction);
        // Add the buttons to the frame and show the frame
        frame.getContentPane().add(openButton, BorderLayout.NORTH);
        frame.getContentPane().add(saveButton, BorderLayout.SOUTH);
        frame.pack();
        frame.setVisible(true);

  • Is change to a recommendation setup possible for not using EMET GUI?

    Hello.
    Is change to a recommendation setup possible for not using EMET GUI?

    Hello.
    ↓TEST
    1.EMET4.1 Inst
     EMET Setup.msi /quiet /norestart
     "C:\Program Files\EMET 4.1\EMET_Conf.exe" --import "C:\Program Files\EMET 4.1\Deployment\Protection Profiles\CertTrust.xml
     "C:\Program Files\EMET 4.1\EMET_Conf.exe" --import "C:\Program Files\EMET 4.1\Deployment\Protection Profiles\Popular Software.xml
     "C:\Program Files\EMET 4.1\EMET_Conf.exe" --system Pinning=Enabled
     →recommendation setting OK
    2.EMET5 Inst
     EMET Setup.msi /quiet /norestart CONFIG_OPTIONS=15
      "C:\Program Files\EMET 5.0\EMET_Conf.exe" --import "C:\Program Files\EMET 5.0\Deployment\Protection Profiles\Popular Software.xml
     →recommendation setting OK
    3.EMET5 Maximum Security Setting(GUI)
    4.EMET5 UnInst
     msiexec /q /x {ID} 
    5.EMET4.1 Inst
      EMET Setup.msi /quiet /norestart
     "C:\Program Files\EMET 4.1\EMET_Conf.exe" --import "C:\Program Files\EMET 4.1\Deployment\Protection Profiles\CertTrust.xml
     "C:\Program Files\EMET 4.1\EMET_Conf.exe" --import "C:\Program Files\EMET 4.1\Deployment\Protection Profiles\Popular Software.xml
     "C:\Program Files\EMET 4.1\EMET_Conf.exe" --system Pinning=Enabled
     →recommendation setting NG
    Result
     EMET5、EMET4.1 Maximum Security Setting(GUI) → recommendation setting(CUI) → NG
     EMET5、EMET4.1 Maximum Security Setting(GUI) → recommendation setting(GUI) → OK
    Anticipation
     It can return only by GUI?

Maybe you are looking for

  • How to choose  optimal value for  the OPEN_CURSOR parameter in init.ora?

    15:05:35 SQL> select count(*) from v$open_cursor; COUNT(*) 5159 15:06:28 SQL> select count(*) from v$open_cursor WHERE user_name='USER1'; COUNT(*) 2369 15:06:48 SQL> select count(*) from v$open_cursor WHERE user_name='USER2'; COUNT(*) 686 Currently,

  • 8.1 system process spiking cpu, disk, and network utilization.

    Hi all,  After the most recent update to 8.1(I believe it was Mon 5/19/2014,) my laptop has been giving control to another program for about half a second, and then returning it to me. If I am typing, nothing comes up during that moment, the menu bar

  • How to (un)hide report columns based on checkboxes?

    Hello, I have a simple report that selects 4 columns from a table. I would like to create 2 check boxes (at the report level, not at the row level) corresponding to 2 of the 4 report columns: When they are checked, the corresponding columns are visib

  • How do you fine tune an effect in Captivate 6

    I'm trying to scale and move a video using the effects timeline and I want it to wind up in an exact location on the stage. Is there any way to fine tune it by entering in exact coordinates rather than by bouncing back & forth between Live Preview an

  • URGENT HELP... why my portal is not displaying ne page...please

    this is what my gateway shows... please tell what is the problem... Wed, 23 May 2001 18:14:10 GMT No DAD configuration Found DAD name: PROCEDURE : URL : http://et-wks-01.esstec.lhe:80/pls/gateway PARAMETERS : =========== ENVIRONMENT: ============ PLS