JavaFx sequence can not convert to Java array

for example
var data= [
["Mary", "Campione",
"Snowboarding", "Campione", "Campione"],
["Alison", "Huml",
"Rowing", "3", "false"]
def swingTable = new JTable(v, columnNames);
The array in javafx is Sequence so it is causing troubles when using java apis, I dont get it why javafx use sequence instead, any idea on how to deal with it? thank you in advance.
Regards

Finally succeed, share my sample in case anyone want to have as a reference. Have not find a nice way to initialize nativearray of nativearray during declaration although:
var columnNames= ["Column1",
"Column2",
"Column3",
"Column4",
"Column5"] as nativearray of String;
var d1 = ["Need", "to",
"kick", "Flex's", "***"] as nativearray of Object;
var d2 = ["But", "lack",
"javafx", "table", "support"] as nativearray of Object;
var data = TableUtil.createArray(2, 5) as nativearray of nativearray of Object;
data[0] = d1;
data[1] = d2;
var o:Object[];
def swingTable = new JTable( data, columnNames) as JTable;
swingTable.setPreferredScrollableViewportSize(new Dimension(500, 70));
def scrollPane = new JScrollPane(swingTable);
Stage {
scene: Scene {
content: VBox {
content: [
SwingComponent.wrap(scrollPane),
// other FX nodes
public class TableUtil {
public static Object[][] createArray(int i, int j) {
return new Object[i][j];
--------------------------------------------------------------

Similar Messages

  • Mediator To Spring Error-Could not convert from java interface to interface

    Hi,
    I have a requirement to using a Spring component and my composite application would be File Read -> Mediator -> Spring Component -> File Write.
    I have to read a file and using mediator map the same to the Spring input and write the Spring component output to a file.
    I have created a Java interface ( Package Name - transformtospring , Interface Name - TransformInterface) and also created a Java Class ( TransformImpl ) which implements the Interface in this package. Saved all these artifacts in SCA-INF/src folder of the application.
    My Spring Bean configuration file is as follows ( saved the file in the same folder as composite.xml )
    <?xml version="1.0" encoding="windows-1252" ?>
    <beans xmlns="http://www.springframework.org/schema/beans"
    xmlns:util="http://www.springframework.org/schema/util"
    xmlns:jee="http://www.springframework.org/schema/jee"
    xmlns:lang="http://www.springframework.org/schema/lang"
    xmlns:aop="http://www.springframework.org/schema/aop"
    xmlns:tx="http://www.springframework.org/schema/tx"
    xmlns:sca="http://xmlns.oracle.com/weblogic/weblogic-sca"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-2.5.xsd http://www.springframework.org/schema/util http://www.springframework.org/schema/util/spring-util-2.5.xsd http://www.springframework.org/schema/aop http://www.springframework.org/schema/aop/spring-aop-2.5.xsd http://www.springframework.org/schema/jee http://www.springframework.org/schema/jee/spring-jee-2.5.xsd http://www.springframework.org/schema/lang http://www.springframework.org/schema/lang/spring-lang-2.5.xsd http://www.springframework.org/schema/tx http://www.springframework.org/schema/tx/spring-tx-2.5.xsd http://www.springframework.org/schema/tool http://www.springframework.org/schema/tool/spring-tool-2.5.xsd http://xmlns.oracle.com/weblogic/weblogic-sca META-INF/weblogic-sca.xsd">
    <!--Spring Bean definitions go here-->
    <bean class="transformtospring.TransformImpl" name="TransformBean"/>
    <sca:service name="TransformService" target="TransformBean"
    type="transformtospring.TransformImpl"/>
    </beans>
    I have created a Spring Context which uses the above Spring Configuration. When i tried to map the mediator output to Spring , i'm getting an error shown below.
    " Could not convert from java interface to interface type wsdl . Exception=java.lang.ClassNotFoundException transformtospring.TransformImpl "
    Please do let me know where exactly i'm doing wrong.
    Regards,
    Sri.

    Hi All,
    I could able to work this one out now !!!
    But i'm having an issue mapping the input to this service. The method signature for the service is as follows:
    public byte[] processData(byte[] input) throws Throwable{
    So the input for this Service is a byte array. Now i'm mapping the data from a File Input ( Read File - opaqueElement ) to this service directly ( using mediator ).
    Now when i have looked into the message in the Enterprise Manager, following is the message structure from Read File input to the service.
    <message>
    <properties>
    <property name="tracking.compositeInstanceId" value="10009"/>
    <property name="tracking.ecid" value="bcd04297e25136e7:4869a9c:13316255efc:-8000-0000000000001f79"/>
    <property name="tracking.conversationId" value="TJ9PCcbtu3S0DA0GuxsGx13RYUb1NxHNndfk2PC8ukk."/>
    </properties>
    <parts>
    <part name="parameters">
    <ns0:processCollaboration>
    <arg0>PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz48bnMwOkFkZDJJbnB1dCAgeG1s bnM6eHNpPSdodHRwOi8vd3d3LnczLm9yZy8yMDAxL1hNTFNjaGVtYS1pbnN0YW5jZScgeG1sbnM6 bnMwPSd1ay5jby5qZHdpbGxpYW1zLkFkZDJJbnB1dCcgeHNpOnNjaGVtYUxvY2F0aW9uPSd1ay5j by5qZHdpbGxpYW1zLkFkZDJJbnB1dCByZXF1ZXN0LnhzZCcPG5zMDpudW0xPjEwPC9uczA6bnVt MT48bnMwOm51bTI+MTY8L25zMDpudW0yPjwvbnMwOkFkZDJJbnB1dD4=+</arg0>
    </ns0:processCollaboration>
    </part>
    </parts>
    </message>
    and the corresponding response message ( No output ) back from the service is:
    <message>
    <properties>
    <property name="tracking.compositeInstanceId" value="10009"/>
    <property name="tracking.ecid" value="bcd04297e25136e7:4869a9c:13316255efc:-8000-0000000000001f79"/>
    <property name="componentName" value="ProcessCollab"/>
    <property name="tracking.conversationId" value="TJ9PCcbtu3S0DA0GuxsGx13RYUb1NxHNndfk2PC8ukk."/>
    <property name="compositeDN" value="default/CollaborationToSpring!1.0*soa_a8da1da7-f98f-4935-8d20-da9e7bc003cc"/>
    </properties>
    <parts>
    <part name="parameters">
    <processCollaborationResponse>
    <return/>
    </processCollaborationResponse>
    </part>
    </parts>
    </message>
    I have included System.out statements in my Java class , but its not printing anything in the logs.
    I'm under the impression that the underlying infrastructure ( mediator ) transparently encodes and decodes data from base64Binary to java byte array. So could anyone help me on this !!!
    Regards,
    Sri.

  • Trying to drag pdf files i have and combine them into one pdf file in the account i just purchased with Adobe. when i drag a pdf file over Adobe doesn't accept it. says it can not convert this type of file. but it is an Adobe file. Do I need to change it?

    Trying to drag pdf files i have and combine them into one pdf file in the account i just purchased with Adobe. when i drag a pdf file over Adobe doesn't accept it. says it can not convert this type of file. but it is an Adobe file. Do I need to change it in some other form befor dragging it?

    Hello djensen1x,
    Could you please let me know what version of Acrobat are you using.
    Also, tell me your workflow of combining those PDF files?
    Please share the screenshot of the error message that you get.
    Hope to get your response.
    Regards,
    Anubha

  • Can not converted to be a charter-type field

    Hi everyone,
      As i m new in abap . i wrote this code and received charter type error.
    *& Report  ZT11
    REPORT  ZT11.
    DATA: aa type lfa1.
         tables lfa1.
         select * from lfa1 into aa where lifnr > 'Z' .
             write / aa.
            endselect.
        if sy-subrc <> 0.
             write / 'No records found'.
            endif.
    error is
    'AA' can not converted to a character-type field.
    plz help to reslove the error .
    thanks in advance.
    Edited by: Faisal Abbasi on May 9, 2010 11:19 AM

    Hi Dear,
    This is Unicode problem, In unicode systme some restriction in programing.
    There is three kid of data type
    Character Processing ( C, N, D, T and STRING ).
    Byte Processing Mode ( X and XString ).
    Numeric Data Type ( I, P , F ).
    whenever in structure all kind of data types are used then you can not use WRITE and then whole structure name.
    in LFA1 in ECC6.0 if any custom fields are not added then up to length 1232 is determined as Character.
    so if you will give aa(1232) it will work similarlly other kid of remainig data tpe you move in another structure of required format and then check.
    REPORT ZT11.
    DATA: aa type lfa1.
    tables lfa1.
    select * from lfa1 into aa where lifnr > 'Z' .
    write / aa(1232).
    endselect.
    if sy-subrc 0.
    write / 'No records found'.
    endif.
    For better Understanding Check
    The following structure has both character-type and non-character-type components:
    BEGIN OF STRUC,
      a TYPE c LENGTH 3,    "Length 3 characters
      b TYPE n LENGTH 4,    "Length 4 characters
      c TYPE d,             "Length 8 characters
      d TYPE t,             "Length 6 characters
      e TYPE f,             "Length 8 bytes
      f TYPE c LENGTH 28,   "Length28 characters
      g TYPE x LENGTH 2,    "Length 2 bytes
    END OF STRUC.
    The Unicode fragment view splits the structure into four areas F1 - F5.
    [ aaa | bbbb | cccccccc | ddd | AAA | eeee | fffffffffffff | gg ]
    [            F1               |  F2 |  F3  |       F4      | F5 ]
    Offset/length access is only possible for the character-type initial fragment F1. Specifications such as struc(21) or struc7(14) are accepted and are handled as a single field of type c. An access such as struc57(2), for example, is not permitted in Unicode systems.

  • I have payed for Adobe acrobat pro but now i can not convert a pdf document to a word format, why?

    I have payed for Adobe acrobat pro for one year and it is valid to november 2015, but now i can not convert a pdf document to a word format, why ?

    Hi m_karhulinna,
    If you have Acrobat Pro, you can save directly to Word format from within Acrobat by choosing File > Save as Other > Microsoft Word > Word Document.
    (It sounds like you may be trying to use the ExportPDF online service, which is separate from Acrobat, and not necessary in your case.)
    Best,
    Sara

  • I can not convert my pdf to excell, i paid the fee but it keeps telling me to join

    I can not convert my pdf to excell, I paid the fee but it keeps telling me to join

    Hi,
    I could not find your Adobe ID(under your current email address) in our database for our service so please make sure to use correct Adobe ID you used for your subscription.
    Thank you.
    Hisami

  • Itunes 8 can not convert to mp3

    I just updated to itunes 8 and now I can not convert to mp3 anymore! The CREATE mp3 version is greyed out and I can not pick it. I have checked and the import mp3 option is checked in the settings.

    Howdy!
    also, it appears that Apple did not update the "iTunes Help" screens when they made iTunes 8 -- those screens still refer to the "advanced" tab in preferences, even though the importing functions are no longer located there:
    THEY READ as follows:
    *Choosing import settings*
    You can choose the encoding format and other settings that iTunes uses to import songs. Your choices affect the audio quality and size of the song file (the higher the quality, the larger the file size).
    To choose import options:
    Choose iTunes > Preferences and click Import Settings.
    ETC. Well, at least they didn't do an iMove-style "revamp" to iTunes.! 8)

  • Can not convert to word

    can not convert to word document

    Video editing software does not output a Word document
    If you start at the Forums Index http://forums.adobe.com/index.jspa
    You will be able to select a forum for the specific Adobe product(s) you use
    Click the "down arrow" symbol on the right to open the drop down list and scroll

  • I can not convert pdf to word ,because file over 100 mb . how can I do ? if I can not convert file ,how can I cancel order ?

    I can not convert pdf to word ,because file over 100 mb . how can I do ? if I can not convert file ,how can I cancel order ?

    To convert documents larger than 100 MB you will need Acrobat; you can download the 30-day trial from https://www.adobe.com/products/acrobat.html
    To cancel a subscription follow http://helpx.adobe.com/x-productkb/policy-pricing/cancel-subscription-acrobat-online-servi ces.html

  • Could not convert from java interface to interface type wsdl ??

    i have a problem wheni have a problem when i develop bpel using mediator and wire to ejb service. When the mediator wire to ejb service, i found the error : Could not convert from java interface to interface type wsdl.... How to solve the problem?

    I followed the case closely (with the same name of classes, methods, etc), but still get the error: “Could not convert from java interface to interface type wsdl.Exception=nl.amis.calculator.Calculator”. I created a Java class to test the lookup and function correctly. However, when I try to wire a Mediator to this Reference, I run into an Interface Conversion Error. I’ve included the line javaInterface = “nl.amis.calculator.Calculator” in file composite.xml, but still get error. Could you help me?

  • Convert web page to adobe pdf can not convert greek characters

    Convert web page to adobe pdf can not convert greek characters. How to solve it?

    Convert web page to adobe pdf can not convert greek characters. How to solve it?

  • Just downloaded adobe XI trial and can not convert pdf to word, says trial is period over

    just downloaded adobe XI trial and can not convert pdf to word, says trial is period over. what can i do

    For some reason this seems to happen to some. It may be that you have a date issue on the machine and Acrobat noted it. By the way, Adobe is the name of the company, not a product.
    I have no idea how Adobe sets and tracks the trial information. It may be there is something else that has caused an issue and Acrobat thinks you have already had the trial on the system and uninstalled it. As far as I know, there is nothing you can do. You might be able to check with sales to see if there is a work-around, but users can do nothing to help you.
    Sorry, hope you can find a way to test the product. It might also be related to the version of Windows that you did not state.

  • VS_BROKEN CAN NOT CONVERT UNICODE TO NON UNICODE STRING

    Hi,
    I am importing data from orcle to sql through etl if i run it manually it works fine but when i am scheduling in sql agent job it throws VS_BROKEN CAN NOT CONVERT UNICODE TO NON UNICODE STRING error like this
    please any body help me how to solve this.
    Thanks,
    Khasim

    Hi Khasim,
    As per my understanding, the error message is too general. In order to troubleshoot this issue, we should view the detail error message about this job. For more details, please see:
    Troubleshooting Jobs
    SQL Server Agent Error Log
    Besides, since when you call a Microsoft SQL Server Integration Services (SSIS) package outside a SQL Server Agent job step, the SSIS package runs successfully. However, if you do not modify the SSIS package, then execute it via SQL Server Agent job step,
    it fails. The scenario always related to the user account that is used to run the package under SQL Server Agent.
    References:
    SSIS package does not run when called from a SQL Server Agent job step
    Thanks,
    Katherine Xiong
    Katherine Xiong
    TechNet Community Support

  • Why Oracle9i statement can not add " ; " in java  ?

    Hi,
    I have a following java programme:
    import java.sql.*;
    public class Result1 {
    public static void main(String args[]) {
    Connection con = null;
    try {
         Class.forName("oracle.jdbc.driver.OracleDriver").newInstance();
    System.out.println("JDBC driver loaded");
    con = DriverManager.getConnection
    ("jdbc:oracle:oci:@xxxxxx","xxx","xxx");
    System.out.println("Database connection established");
    ResultSet rs=null;
    String user_id1="user101";
    String queryString = ("SELECT * FROM fixed_asset;");
    PreparedStatement stmt = con.prepareStatement(queryString);
    rs = stmt.executeQuery();
    while (rs.next()) {
    String s2 = rs.getString("db_id");
    System.out.println(s2);
    catch (ClassNotFoundException cnfe) {
    System.out.println("ClassNotFoundException: Could not locate driver");
    } catch (SQLException cnfe) {
    System.out.println("SQLException: Could not connect to database");
    } catch (Exception e) {
    System.out.println
    ("An unknown error occurred while connecting to database");
    } finally {
    try {
    if (con != null) {
    con.close();
    } catch(SQLException sqle) {
    System.out.println("Unable to close database connection.");
    This prog can be compiled, but when it run it show can't not connect to database.
    But when i remove the ; in the queryString such that
    String queryString = ("SELECT * FROM fixed_asset");
    It can complete show the result i want .
    Why it can not support ";" and how can i add two execute statements at the same time?
    Thx ,
    Ricky

    When you include the semicolon, the error is generated when you execute the statement and probably indicates an invalid character error. Your error handler is assuming that any SQLException indicates that the program was unable to connect to the database, which is an incorrect assumption. Including a semicolon in a standalone SQL statement is invalid syntax.
    In Oracle, you cannot pass a semicolon separated list of SQL statements to the database to be processed. If the statements are related, however, you can use an anonymous PL/SQL block to achieve the same result, i.e.
    BEGIN
      <<statement 1>>;
      <<statement 2>>;
      <<statement 3>>;
    END;Justin
    Distributed Database Consulting, Inc.
    http://www.ddbcinc.com/askDDBC

  • Can not convert protected aac-song to mp3

    I want to make an mp3 cd to play in my car, the stereo in my car supports no aac, itunes does not allow to convert aac to mp3, in this way I can not use the songs I bought in the itunes store to be played in my car.
    Who has a solution?

    The sooner we get the preamble out of the way, the sooner we can answer your question. So ...
    The iTunes Store is in the business of selling songs made with the Advanced Audio Coding (AAC) Codec, otherwise referred to as MPEG-4 files or .m4p's. That's what they sell and, excepting Audiobooks, Podcasts, Videos, TV Shows, Movies and Games (I think I've covered everything) that's all that they sell.
    Furthermore, the songs purchased from the iTunes Music Store are copy-protected . As a result of this, these songs cannot be converted to other formats, specifically they cannot be converted to the MP-3 format.
    There is a workaround, though, for those who may want to make use of purchased songs in a non-AAC compatible application such as an mp-3 player or Windows Movie Maker.
    A reminder about your obligations with songs you've bought from iTS is in order before proceeding. First a disclaimer: I'm not a lawyer, although I am old enough to have watched a few episodes of Perry Mason when I was a kid.
    Among the Terms of Service agreed to in opening an account with the Music Store is:
    9 b. Use of Products. You acknowledge that Products contain security technology that limits your usage of Products to the following Usage Rules, and you agree to use Products in compliance with such Usage Rules.
    And among the Usage Rules referred to above:
    You shall be entitled to export, burn or copy Products solely for personal, noncommercial use.
    Any burning or exporting capabilities are solely an accommodation to you and shall not constitute a grant or waiver (or other limitation or implication) of any rights of the copyright owners in any content, sound recording, underlying musical composition, or artwork embodied in any Product.
    One final point before getting to the answer to your question, the Software License Agreement with Apple for iTunes that you agreed to states in part:
    This software may be used to reproduce materials. It is licensed to you only for reproduction of non-copyrighted materials, materials in which you own the copyright, or materials you are authorized or legally permitted to reproduce. ... If you are uncertain about your right to copy or permit access to any material you should contact your legal advisor.
    The purpose of the agreements and the security technology referred to is to deter music piracy. This fits in with the advice offered on all our iPod boxes: Don't steal music.
    Preamble out of the way, So how do you use your purchased songs with an MP-3 device?
    First go to the iTunes Edit menu > Preferences > Burning tab and select Disc Format: Audio CD . Press OK .
    You can now create an Audio CD of your purchased songs.
    The next step is to go to the iTunes Edit menu > Preferences > Importing tab and select Import Using: MP3 Encoder with the Setting of your choice. Press OK .
    Now you can import the Audio CD into iTunes.
    Alternatively, the importing of the Audio CD can be done with the media player of your choice.
    That's it. You will now have files that you can use with an MP-3 application. It is important to emphasize you are still limited to "personal, noncommercial use" of the songs as per your agreement with iTMS.
    Please note that as a result of this process the copies will suffer some loss of audio fidelity compared to the original files.
    Any further questions, please post back.
    I promise to keep the answer short.
    ; - )

Maybe you are looking for

  • Trouble connecting playbook to windows PC when using AVG Internet Security and USB cable ?

    I have spent ages trying to get my PC (windows 7 64bit ) to talk to the Playbook. I found the following: Windows device manager sees the playbook and will let me back up and restore but not to see the files on the Playbook. Desktop software says prob

  • Transfer my Music from my Ipod Touch 3G to I tunes on a Different PC!!?!??!

    Hey... I got all my music transfered to my new ipod touch on a PC that I don't have access to anymore.. And now I downloaded Itunes to a different PC that i can use and I wanna Transfer my music from my ipod to my itunes but just don't know how!!!! I

  • Thin white line between line art and live paint fill?

    I am using live paint to paint cartoon character illustrations.  The artwork is brought into Illustrator CS3 and live traced.  Then I convert it to a live paint group and use the paint bucket to fill.  Everything looks fine no matter how much I zoom

  • Best Raid Block Size for video editing

    I cannot seem to get my head round about which Raid Block Size I should set my Striped Raid 50 configuration to. There seems to be very little info about this, but what info there is seems to imply that it could seriously affect the performace of the

  • Advice on forms logic

    Hi Friends , I have a reference table Ref_table_code, Ref_table_code ID Table_name Related_table Code Status, Description Definition ------ e.t.c Table name is like a domain , and you can have multiple codes for a table_name. The requirement is to cr