Problem by providing data to AreaChart present in the .fxml file

I created the file .fxml using FX scene Builder AreaChart control and try to use in Netbeans.
My problem is that I'm not able to add data to this table. When the user clicks on the button in the form, function CreateChart() is called to display the chart.
I tried several ways, but not a good way to implement.

+<!------------------------ test1.fxml-------------------------------->+
< AnchorPane id = "AnchorPane" maxHeight = "500.0" maxWidth = "950.0" minHeight = "500.0" minWidth = "500.0" prefHeight = "574,0" prefWidth = "914.0" xmlns:fx = "http://javafx.com/fxml" fx:controller = "javafxapplication2. Sample' >
< children >
< label id = "label1" alignment = "CENTER" contentDisplay = 'CENTER' layoutX = "-" we 1.0 = "29.0" prefHeight = prefWidth "40.0" = "298,0" text = "Test Application" textAlignment = 'CENTER' textFill = ' #5352cc ' pointed out = "true" = "true" wrapText >
< effect >
< reflection / >
< / effect >
< font >
< do name = "System Bold Italic' size ="24.0"/ >
< / make >
< rotationAxis >
< Point3D y = z "0.5" = "4.0" / >
< / rotationAxis >
< / label >
< TextField fx:id = "textField1" layoutX '55.0' = on = "109,0" opacity = "0.95" pickOnBounds = "true" prefWidth = "200,0" text = "Name" / >
< button fx:id = 'button' layoutX '126.0' = on = "150.0" onAction = "#handleButtonAction" text = "Click Me!" / >
< label fx:id = 'label' = "126,0" layoutX on = "180.0" minHeight = "16.0" minWidth = "150.0" prefHeight = "16.0" prefWidth = "150.0" / >
< ProgressBar id = "progressBar1" layoutX = we "53.0" = "263.0" mouseTransparent = "true" pickOnBounds = "true" prefWidth = "200,0" / >
< ProgressIndicator id = "progressIndicator1" layoutX '124.0' = on = "294,0" / >
< AreaChart id = "AreaChart" fx:id = "areaChart1" = "297,0" layoutX on = "50.0" >
< xAxis >
< CategoryAxis id = "xAxis1" on the side of 'BOTTOM' = >
< categories >
< FXCollections fx:factory = "observableArrayList" / >
< / categories >
< / axis desabscisses >
< / xAxis >
< yAxis >
< NumberAxis id = "yAxis1" side = "LEFT" / >
< / yAxis >
< / AreaChart >
< / children >
Properties of <>
< backgroundColor >
< "1,000" green = blue = colour opacity "0.880" = "0,698" red = "0.800" / >
< / backgroundColor >
< / properties >
< / AnchorPane >
<!---------------------------------------Sample.java---------------------------------------->
public class Sample implements {bootable

@FXML label private;
Private @FXML TextField textField1;
Private @FXML AreaChart areaChart1;
@FXML private ObservableList observableArrayList;
@FXML
Private Sub handleButtonAction (ActionEvent event) {}
System.out.println ("you clicked me!");
label.setText ("Hello World!" + textField1.getText ());
createAreaChart();
}


@Override
Public Sub initialize (URL url, rb ResourceBundle) {}
TODO
}

Public Sub createAreaChart()
{
areaChart1.setTitle ("monitoring the temperature (in degrees C) '");

XYChart.Series seriesApril = new XYChart.Series ();
seriesApril.setName ("April");
seriesApril.getData () .add (new XYChart.Data (0, 4));
seriesApril.getData () .add (new XYChart.Data (3, 10));
seriesApril.getData () .add (new XYChart.Data (6, 15));
seriesApril.getData () .add (new XYChart.Data (9, 8));
seriesApril.getData () .add (new XYChart.Data (12, 5));
seriesApril.getData () .add (new XYChart.Data (15, 18));
seriesApril.getData () .add (new XYChart.Data (18: 15));
seriesApril.getData () .add (new XYChart.Data (21, 13));
seriesApril.getData () .add (new XYChart.Data (24: 19));
seriesApril.getData () .add (new XYChart.Data (27: 21));
seriesApril.getData () .add (new XYChart.Data (30, 21));

XYChart.Series seriesMay = new XYChart.Series ();
seriesMay.setName("May");
seriesMay.getData () .add (new XYChart.Data (0, 20));
seriesMay.getData () .add (new XYChart.Data (3, 15));
seriesMay.getData () .add (new XYChart.Data (6, 13));
seriesMay.getData () .add (new XYChart.Data (9, 12));
seriesMay.getData () .add (new XYChart.Data (12, 14));
seriesMay.getData () .add (new XYChart.Data (15, 18));
seriesMay.getData () .add (new XYChart.Data (18, 25));
seriesMay.getData () .add (new XYChart.Data (21, 25));
seriesMay.getData () .add (new XYChart.Data (24, 23));
seriesMay.getData () .add (new XYChart.Data (27, 26));
seriesMay.getData () .add (new XYChart.Data (31, 26));

areaChart1.getData () .addAll (seriesApril, seriesMay);
}
}


Please suggest me what is the problem?

Hello

XYChart should be passed their axis in the constructor.
Developer SceneBuilder preview comes with a set of elements dropable XYChart where the nature of the X axis and the Y axis is preconfigured.
In other words, when you drop an AreaChart in SceneBuilder, the area chart is preconfigured with a NumberAxis Y and a CategoryAxis X.
From what I see, it seems that your series requires a X NumberAxis and Y NumberAxis.

A way to make your example work replace manually







with



in the FXML file. SceneBuilder should be able to happily work with such a file, it's just that at the moment the library in SceneBuilder has all XYChart configured in this way.

Hope this helps,

-daniel

Tags: Java

Similar Questions

  • Make sure that the products/versions supported are present in the MXI file or CEP manifest when you transfer the zxp to Adobe Exchange

    Hi all

    I was faced with this problem for a long time.

    When I'm uploading my Extension for first pro CC Panel, I get this message from Adobe Exchange.

    Problems have been found with your submission.

    Once you have made the following changes, you can click the Edit (pencil) and re-download your ZXP.

    • Make sure that the products/versions supported are present in the MXI file or a CEP manifest file

    I added

    < Products >

    < produces maxversion = "9.9" name = "First" primary = "true" version = "7.0" / >

    < / product >

    In my mxi file and the ZXP is install correctly in Premiere pro versions CC, 2014 and 2015.

    But when I upload the same ZXP his shows this error.

    When I changed the label of products with details of the document Adobe Exchange forum to test different scenarios [https://www.adobeexchange.com/resources/7#packman]

    < Products >

    < produces maxversion = "8" name = "InDesign" primary = "true" version = "8.0" / >

    < / product >

    ZXP is getting downloaded on Adobe Exchange.


    Can anyone suggest what to do to download my package with support for Premiere pro zxp versions 7.0 to 9.9?


    Thanks in advance,

    ANOOP NR


    Thank you watchwithi28270883! I was facing this problem for quite a while now.

    Your solution worked for me also!

  • Presentation of the SWF file

    Hello

    What is the best solution for the presentation of the SWF file on computers that have not installed FLASH player?

    There is none. Flash is owner and using little flavor of Flash player is inevitable.

    Mylenium

  • new pc with windows 8.1, and no downloaded installed cs5, no problem open deck and cs5, but cannot read the raw file, try to update, cannot complete or update failed, please help

    new pc with windows 8.1, and no downloaded installed cs5, no problem open deck and cs5, but cannot read the raw file, try to update, cannot complete or update failed, please help

    Looks like you have somehow the mac version.

    Download the updated windows 6.7 camera raw from this link:

    Adobe - Photoshop: for Windows: Camera Raw 6.7 update

  • Problem loading of Image of CSS by dynamically loading the fxml file?

    H1. Introduction
    I develop load a file FXML leave a controller. The FXML uses CSS and images for buttons are defined in the CSS.

    CSS directory structure
    .fxml < package >

    Images
    the <>package. fxml.resources. < subdir >

    Example of CSS Code
    .buttonImage {
        -fx-background-image: url("resources/subdir/image.png"); 
    }
    Example of loading the controller code fxml
             URL location = getClass().getResource("/package/fxml/UI.fxml");
             FXMLLoader fxmlLoader = new FXMLLoader(location);
             fxmlLoader.setLocation(location);
             fxmlLoader.setBuilderFactory(new JavaFXBuilderFactory());
             Parent root = (Parent)fxmlLoader.load(location.openStream());
             Controller = (Controller) fxmlLoader.getController();
             newPane.getChildren().add(root);
    H1. Problem
    The fxml file does not load, and causes the following error:
    javafx.fxml.LoadException: Page language not specified.
    Rate this file fxml loaded correctly so that the images have been added.

    Any ideas of what could go wrong?

    H1. Attempted
    I tried the following: tried to change the url of the image as an absolute path.

    The problem is your onAction managers. If you point to a Java controller, we must start by #. for example #profileEventFired

  • data extarneous of copy of the completed files C:\ drive. No space left for storage

    Running Windows 7 Premium Home Edition, 64-bit with service pack 1 and all other updates installed Microsoft.

    In the last two days, I copied an extreme amount of video files, for most AVI and MP4, (890 files containing 580 GB of data) mapped network drive Z (Western Digital Live Hub 1 TB) on external hard drive (Western Digital My Book, 1 TB) K. Copping took 40 hours to complete. No problem to complete the copy of the files.

    Problem is during the copy process, an extreme amount of noise data was placed somewhere on my main drive C:\. Total extraneous data are about 450 GB, which filled the C:\ drive. No room left on the road. I spent several hours trying to find and remove redundant data from C:\, but have not found where these data are currently stored.

    Where would these data stored? Y at - it a command string search in Windows or CMD Prompt I could use to find the data. All unnecessary data would have a creation date of the file of 10/05/2013 or 11/05/2013.

    Hello

    Thank you for contacting Microsoft Community.
    Try the following:
    Method 1: The offline files cache is a folder structure in the folder % SystemRoot%\CSC, which is hidden by default. The record of the CSC and all files and subfolders it contains, should not be modified directly; doing so may result in loss of data and a complete disassembly of the offline files feature.
    If you think corruption in the database, then delete the files using the offline files viewer. After you delete the files in the offline files Viewer, a synchronization of files may then be forced using Synchronization Manager. If the cache still does not appear to work correctly, offline files reset can be performed by using the following procedure:

    1. In Folder Options, on the offline files tab, press CTRL + SHIFT, and then click delete files. The following message appears:

      Cache files offline on the local computer will be reset. Any changes that have not been synchronized with computers on the network will be lost. Any files or folders made available offline will be more available in offline mode. A restart of the computer is required.

      You want to re - initialize the cache?

    2. Click Yes twice to restart the computer.
    Method 2:

    Use the registry editor

    If you cannot access the offline files tab, use this method to reset the cache offline files (CSC) on the system by editing the registry. Also use this method to reset the cache on the side of client/database files offline on multiple systems. Add the following registry subkey:

    HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\NetCache
    Key name: FormatDatabase
    Key type: DWORD
    Key Value: 1

    Note The actual value of the registry key is ignored. This registry change requires a restart. When the computer restarts, the shell will reset the CSC cache and then delete the registry key if the registry entry exists.

    Warning All cache files are deleted and unsynchronized data is lost.


    Using Reg.exe

    You can also automate the process of setting this registry value using the Reg.exe command line editor. To do this, type the following command in the window of Reg.exe:

    REG. EXE. REG ADD "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\NetCache' FormatDatabase /t REG_DWORD /d 1 f v

    For more information, please visit the following link:

    http://support.Microsoft.com/kb/230738

    If the problem persists, answer here.

  • Card data scope of device to the TDMS file buffer

    How transfer brought data card device buffer to TDMS file directly bye passing buffers LabVIEW and Windows. In the same way as DAQmx configure logging (VI) do we have any function scope?

    The API OR-SCOPE doesn't have the ability to record data acquired directly on the disc like the DAQmx API offers.  All data must be retrieved from the on-board memory, which makes data transfer OR-SCOPE kernel driver via DMA, and a copy must then happen to transfer data from the space of the kernel in user space (LabVIEW), how it can be manipulated.

    The main reason for this flow is because the calibration scale occurs in the NOR-SCOPE driver and not the material.  So if you were to save data directly to the disk as DAQmx, he stock raw ADC codes, without correction calibrated.  The API OR-SCOPE allows to recover the coefficients of scale if you want to apply them at a later date after extraction of the data from the hardware.  To optimize flow of data applications, it is recommended.

    The only exception to the logging directly on the disk would be the Oscilloscope Reconfigurable SMU-5171R.  It is being implemented with LabVIEW FPGA firmware using the design of Instrument libraries, code is open for editing.  With the open nature of this software stack, it is possible to implement "direct to TDMS" functionality with LabVIEW FPGA Read region node.

    I hope this helps!

    -Nathan

  • read and sort the values present in the .ini file

    Hi all

    I have an .ini file in which a set of modules with that execution order is mentioned. I want to get all these values sorted in a table, so that I can proceed with the execution of each one in the order given. The list of the module in the .ini file looks like this:

    .

    Here, the numbers represent the order of execution of the module.

    I should get output as a table with the following values:

    1 MNO

    DEF 2

    3 STU

    4 PQR

    5 GHEE

    6 VWZ

    ABC 7

    8 JKL

    I don't know about the configuration data and reading key live but as the list of modules is huge I don't know how to write efficient code for this. Any suggestions are welcome.

    Thank you.

    The excerpt below should be very close to what you want.

  • Export a table present in the indesign file in PNG?

    Hi all

    I have 10 indd files and each file has a page and a table is the only element that is present on the page. So a few files indd a table present in a text box and few records a table in two text boxes, because the table has several rows as spiltted in two linked text boxes.

    I am able to select the two text boxes, but all somehow by exporting the table of the box text only get exported in png because of a bad code.

    Pls help.

    app.selection [0] .exportFile (ExportFormat.PNG_FORMAT, destFile, false);   / / here, I need to correct the code.

    indesign #target

    var sourceFolder = new file ("/ users/admin4/Desktop/INS ');

    myFiles var = sourceFolder.getFiles ();

    Alert (myFiles.length);

    var destFolder = new file ("/ users/admin4/Desktop/folder3");

    for (i = 0; i < myFiles.length; i ++)

    {

    If (myFiles [i] .name "! =".) DS_Store')

    {

    var sourceDoc = app.open (myFiles [i]);

    app.activeDocument.pageItems.everyItem () .select ();

    app.activeDocument.stories [0] .tables [0].parent.select ();

    var destFile = lead (destFolder + "/" + myFiles [i] .name + ".png");

    App.Selection [0] .exportFile (ExportFormat.PNG_FORMAT, destFile, false);

    Here, I need to fix the code.

    sourceDoc.close (SaveOptions.NO);

    }

    }

    Hello

    Group pageItems and export selected group:

    var sourceFolder = new Folder ("/Users/admin4/Desktop/INS"),
    destFolder = new Folder ("/Users/admin4/Desktop/folder3"),
    myFiles = sourceFolder.getFiles(/.indd$/),
    sourceDoc, i, destFile, mPItems, mTarget;
    
    for (i=0; i < myFiles.length; i++)
    {
         sourceDoc = app.open(myFiles[i]);
         if(sourceDoc) {
              mPItems = sourceDoc.spreads[0].pageItems.everyItem().getElements();
              switch (mPItems.length) {
                   case 0: alert("Empty file: " + sourceDoc.name); exit(0); break;
                   case 1: mTarget = sourceDoc.pageItems[0]; break;
                   default: mTarget = sourceDoc.groups.add(mPItems); break;
                   }
              mTarget.select();
              destFile = File(destFolder + "/" + sourceDoc.name + ".png");
              app.selection[0].exportFile(ExportFormat.PNG_FORMAT, destFile, false);
              }
         else alert("Can't open a file: " + sourceDoc.name);
    
         if(sourceDoc.spreads.length > 1)
              alert ("More than 1 spread in file: " + sourceDoc.name);
    
         sourceDoc.close(SaveOptions.NO);
    }
    

    Jarek

  • Remove users from UDF attribute of unique values present in the flat file

    Hello
    I'm trying to remove users from the IOM by using a single value of one of the present of the UDF in the flat file for example say SSN. I preferred the approach to go through a scheduled task to remove users from IOM. I know that the permanent deletion of IOM through the database is not possible. To have written a custom code to do the same thing and I have used the tcuseroperationintf.deleteuser(long...) method. But I had a straight and simple query for the same thing. Should what value I contact in the long appropriate field in the list of the attributes of this method?

    Any guidance on this task would be appreciate.

    Thanks in advance,
    -oidm.

    You want to the Users.Key or the USR_KEY and give it in the format of variable length.

    -Kevin

  • With the help of the socket object to retrieve data from web application without the html files

    I tried to use the socket object to retrieve data from a web application (I just control script version vs version online). So all I want to do is access http://hyle.io/version that returns me the current version of the application (such as a simple string) in order to compare it in my script and then notifies the user accordingly. I have just a few problems using the socket object. I used this code from the Adobe Javascript Tools Guide:


    reply = "";
    conn = new Socket;
    // access Adobe’s home page
    if (conn.open ("www.adobe.com:80")) {
    // send a HTTP GET request
    conn.write ("GET /index.html HTTP/1.0\n\n");
    // and read the server’s reply
    reply = conn.read(999999);
    conn.close();
    }
    

    ... that I then adapted as:

    reply = "";
    conn = new Socket;
    if (conn.open ("hyle.io:80")) {
      conn.write ("GET /version HTTP/1.0\n\n");
      reply = conn.read(999999); 
      conn.close();
    }
    

    And here is what I get:

    HTTP/1.1 400 Bad Request
    Content-Length: 225
    Content-Type: text/html
    Server: Pagodabox-Routing-Mesh
    
    

    Bad Request

    Your browser sent a request that this server could not understand.

    Résultat : true

    I don't know a lot about HTTP requests, but I wondered if it was related to the fact that I am not pointing to a specific HTML file and the type of request was wrong or if I should rather check if there is something wrong with my host?

    The site/app is PHP and is hosted on PagodaBox if it helps.

    Thanks in advance!

    Hi Sebastien Lavoie,

    It should work

    var HTTPFile = function (url, port) {}

    If (arguments.length == 1) {}

    URL = arguments [0];

    port = 80;

    };

    This.url = url;

    This.port = port;

    this.httpPrefix = this.url.match(/http:\/\//);

    This.Domain = this.httpPrefix is nothing? This.URL.Split("/") [0] + ":" + this.port: this .url .split ("/") [2] +":" + this.port;

    This.Call = ' GET ' + (this.httpPrefix == null? ' "). " http://" (+ this.url: this.url) + "HTTP/1.0\r\nHost: ' + (this.httpPrefix is nothing? "This.URL.Split("/ ") [0]: this .url .split (" / ") [2]) +" \r\nConnection: close\r\n\r\n ";

    This.Reply = new String();

    This.Conn = new Socket();

    This.Conn.Encoding = "binary";

    HTTPFile.prototype.getFile = {function (f)}

    var typeMatch = this.url.match(/(\.) (\w{3,4}\b)/g);

    If (this.conn.open (this.domain, "binary")) {}

    This.Conn.Write (this.) Call);

    This.Reply = this.conn.read (9999999999);

    This.Conn.Close ();

    } else {}

    This.Reply = "";

    }

    (Return this.reply.substr(this.reply.indexOf("\r\n\r\n")+4);

    };

    }

    Hyle var = new HTTPFile ("http://hyle.io/version");

    Alert (hyle. GetFile());

    And by the way, I like the idea of 'http://hyle.io'. Can you give me your email address, I want to learn more about this Web site.

    Please send me an email to [email protected]

  • ADE 2 is extremely slow in the presentation of the ACSM files

    I bought a document that is in the format of the CMHA.  I don't know about this format.  ADE 2 appears to download the data and displays the pages, but is extremely slow in the pages of scrolling.  So slow they are useless.  Any change takes forever to accomplsh. I use an Apple MacBook Pro OS 10.8.3.

    I have no problem with reading all the ADE 2 "Getting Started" of the file that is unfolding as I wish the application to run.  I am considering the removal of 2 ADE and download it again, but am worried how that would effect the process of validisation.

    Robin.

    If you reinstall it shouldn't change validation/authorization.

    ADE is a way to get approval involved; If she's not bad

    CTRL-SHIFT-D to ADE to remove the old authorization (cmd-shift-D for you on a Mac)

    Restart ADE

    reauthorize

    ~~~~~~~~~

    You can find the old version v1.7.2 better, much more reliable in many ways that ADE2.0 that is a load of bug riddled with garbage.

    Version 1.7.2, is a little hard to find, available on the website of Adobe for Windows and for Mac.

    http://helpx.Adobe.com/Digital-Editions/KB/cant-install-digital-editions.html

    The forum software is sometimes corrupt the link above.  It should not be a white in "editio ns.  What follows is a redirect to the same page: http://tinyurl.com/diged172

  • Media Player is up-to-date and copies of all the music files added, I have 5 copies now

    I can't find any way to stop this update and addition of copies of everything in my music files. I delete thecop ies and they keep coming back. There is no settings I can find to solve this problem, please help.

    Diane

    Troubleshooting,

    http://Windows.Microsoft.com/en-us/Windows/products/Windows-Media-Player

  • How can I solve this problem?  Cannot open in Adobe scan because the incorrect file format or corruption

    When I scan a document and try to bring it on my screen in Adobe, I get the error message that it cannot be opened in Adobe because it's in the wrong format or the file is corrupted. How can I fix this problem?

    What format you scan your documents? Adobe Reader opens as pdf files. If you scan to a different image file formats, reader will give you this message.

  • Many storage spaces and data for each quarter of the year files

    Hello

    I am junior DBA and I have a question about tablespace partitioning or data file sharing.

    I have a database of 10g in many storage spaces, for example:

    KER_DATA_2009_Q1

    KER_DATA_2009_Q2

    KER_DATA_2009_Q3

    KER_DATA_2009_Q4

    KER_INDX_2009_Q1

    KER_INDX_2009_Q2

    KER_INDX_2009_Q3

    KER_INDX_2009_Q4

    There is also a data file for each tablespace that is mentioned.

    But for this year 2013, only two big storage space I can get one and data KER_DATA, KER_INDX files.

    All tables and indexes in the whole database are KER_DATA, KER_INDX, tablespaces.

    I don't know any cut in two storage spaces and means of data files. Is this something like tablespace partitioning? This can be done automatically or someone needed to do it manually on the end of each quarter?

    This should be done to improve performance, several small files data instead a large?

    Can some admin explain this to me?

    The reason for this separation of database/tablespace was partitioning. There are a lot of tables partitioned by date column, and there are partitions for each quarter of the year. There are tablespace with a data file for each quarter (partition).

Maybe you are looking for

  • 600-1050 HP Touchsmart All in: upgrading ram touchsmart 600

    I bought a Memory RAM-DDR3-1333 8 GB [2x4gb] Upgrade Kit for to upgrade my HP Touchsmart 600-1050 all-in-one. However, he had not worked and shows only a black screen after the installation. The discription is Memory 4GB DDR3 - 1333 PC3 - 10600 Non -

  • Satellite M60 164 - USB problem

    I have recently introduced a new Toshiba laptop and am runing Windows XP with SP2. I'm having a problem with some USB devices powered like a USB stick or disk external hard usb. The USB key that I use is fed by another usb port, I tried one on Tosh a

  • iPhone disabled / pirate iCloud?

    Hello My girlfriend has been surfing the Internet using his iPhone 6s more and met with a message saying that his phone has been hacked and that she had to pay the money. Fearing the worst, she quit safari and attempted to erase and restore his phone

  • Problem install Microsoft LifeCam Cinema (model 1439)

    I just bought a Microsoft LiveCam cinema (model 1439). I am running Windows XP SP3. My laptop can not find drivers usbvideo.sys and usbaudio.sys, and I can't find a site where I can download them. What should I do? Thank you

  • Where can I find MN-510 drivers for Windows Vista?

    I can't locate the drivers updated for the MN-510 card to make it work with Windows Vista.