Loading UI components from config file

Hi,
I wanted to know your opinion about a project that i'm working on.
The inicial idea of the project is to have a config file (file.ini) with a syntax similar to this one:
[Component1]
type = sevenseg
width = 200
height = 50
numberOfDigits = 5
foregroundColor = green
backgroundColor = grey
[Component2]
type = button
width = 50
height = 20
command = GETLED 3
[Window]
width = 500
height = 300The application needs to read the file when it starts and after that, it needs to build the interface based in the config file. I think this is the easy part.
The most difficult part is that i also want the application polling a webserver for data in order to refresh the values displayed in the components and also, when there is some input action (clicking a button, changing a slider, etc) i want to send it to the server.
The problem is that I'm not imagining a way of linking the various components that will be in the UI while using this config file.
Do you have any ideas or do you think this can be done?
The purpose of reading the "UI" from the config file was to reduce the writing of code, since this application will be used by people with little skills in programming.
And in the future, it could be possible of creating an application to create all the UIs needed in a way similar to netbeans and swing based UI.
Thanks for your attention.
João Gonçalves
PS: If this isn't possible, I'm also considering the possibility of creating a netbeans plugin to design the UI. Here I don't avoid the coding problem, but i can reduce it a bit.

Well, I'm going to try to explain it a bit better.
The application that i'm going to do is the interface and it's going to be done in javafx, (obviously).
The application will be the user interface of a remote device that will be located somewhere in a LAN. The webserver is located in the middle, between the client (UI) and the device, and is the webserver that it's going to make the bridge between the client and the device.
The architecture will be something like this:
Client <------> WebServer <------> device
The idea of the project is to make it possible to use a large number of devices, all different. So the UI that is going to control each device will need to be customized in order to look similar to the control panel of the device and to permit the user to interact with this one like if he was in front of it.
The reason of my question is because it was asked to me if it was possible to create a config file and load the UI components and layout from the file, to avoid dealing with the code, since the persons who are going to configure the devices are not software developers and don't know too much about java and programming.
This is why i made this post, to know the opinion of people more experienced than I in programming, and above all, in javafx.

Similar Messages

  • Unable to load new information from configuration file /var/ldap/ldap_clien

    Hi all,
    When I run the command "ldapclient init", I got the error message:
    # ldapclient init -a proxyDN=cn=proxyagent,ou=profile,dc=example,dc=ca -a domainName=example.ca -a profileName=UserProfile -a proxyPassword=pwd 10.1.10.50
    Unable to load new information from configuration file '/var/ldap/ldap_client_file' ('Unable to open filename '/var/ldap/ldap_client_file' for reading (errno=2).').
    Any idea?
    Thanks a lot for your help!

    Does the profile UserProfile exist on your LDAP server?
    Do the logs on your LDAP server show access problems?
    Try using -v to get more verbose output

  • How to Load the data from excel file(Extension is .CSV) into the temp.table

    Hi
    How to Load the data from excel file(Extension is .CSV) into the temporary table of oracle in Forms11g.
    My Forms Version is - Forms [64 Bit] Version 11.1.2.0.0 (Production)
    Kindly Suggest the Solution.
    Regards,
    Sachin

    Hello Sachin,
    You can use the following metalink note:How to Read Data from an EXCEL Spreadsheet into a Form Using Webutil Client_OLE2 (Doc ID 813535.1) and modify it a little bit.
    Instead of copy values into forms you can save them in your temporary table.
    Kind regards,
    Alex
    If someone's helpful or correct please mark it accordingly.

  • How to load the data from .csv file to oracle table???

    Hi,
    I am using oracle 10g , plsql developer. Can anyone help me in how to load the data from .csv file to oracle table. The table is already created with the required columns. The .csv file is having about 10lakh records. Is it possible to load 10lakh records. can any one please tell me how to proceed.
    Thanks in advance

    981145 wrote:
    Can you tell more about sql * loader??? how to know that utility is available for me or not??? I am using oracle 10g database and plsql developer???SQL*Loader is part of the Oracle client. If you have a developer installation you should normally have it on your client.
    the command is
    sqlldrType it and see if you have it installed.
    Have a look also at the FAQ link posted by Marwin.
    There are plenty of examples also on the web.
    Regards.
    Al

  • How to load the data from excel file into temprory table in Forms 11g?

    Hi
    How to Load the data from excel file(Extension is .CSV) into the temporary table of oracle in Forms11g.
    My Forms Version is - Forms [64 Bit] Version 11.1.2.0.0 (Production)
    Kindly Suggest the Solution.
    Regards,
    Sachin

    Declare
        v_full_filename         varchar2(500);
        v_server_path           varchar2(2000);
        v_separator             VARCHAR2(1);
        v_filename              VARCHAR2(400);
        filename                VARCHAR2 (100);
        v_stop_load             varchar2 (2000);
        v_rec_error_log         varchar2(4000);
        v_error_log             varchar2(4000);
        ctr                     NUMBER (12);
        cols                    NUMBER (2);
        btn                     number;
        RES                     BOOLEAN;   
        application             ole2.obj_type;
        workbooks               ole2.obj_type;
        workbook                ole2.obj_type;
        worksheets              ole2.obj_type;
        worksheet               ole2.obj_type;
        cell                    ole2.obj_type;
        cellType                ole2.OBJ_TYPE;
        args                    ole2.obj_type;
        PROCEDURE olearg
        IS
        args   ole2.obj_type;
        BEGIN
        args := ole2.create_arglist;
        ole2.add_arg (args, ctr);                                
        ole2.add_arg (args, cols);                                   
        cell := ole2.get_obj_property (worksheet, 'Cells', args);
        ole2.destroy_arglist (args);
        END;
    BEGIN
    v_full_filename := client_get_file_name(directory_name => null
                                     ,file_name      => null
                                     ,file_filter    => 'Excel  files (*.xls)|*.xls|'  
                                                                            ||'Excel  files (*.xlsx)|*.xlsx|'                                                                 
                                     ,message        => 'Choose Excel file'
                                     ,dialog_type    => null
                                     ,select_file    => null
    If v_full_filename is not null Then
    v_separator := WEBUTIL_CLIENTINFO.Get_file_Separator ;
    v_filename := v_separator||v_full_filename ;
    :LOAD_FILE_NAME := substr(v_filename,instr(v_filename,v_separator,-1) + 1);                                
    RES := Webutil_File_Transfer.Client_To_AS(v_full_filename,"server_path"||substr(v_filename,instr(v_filename,v_separator,-1) + 1));     
    --Begin load data from EXCEL
    BEGIN
        filename := v_server_path||substr(v_filename,instr(v_filename,v_separator,-1) + 1); -- to pick the file
        application := ole2.create_obj ('Excel.Application');
        ole2.set_property (application, 'Visible', 'false');
        workbooks := ole2.get_obj_property (application, 'Workbooks');
        args := ole2.create_arglist;
        ole2.add_arg (args, filename); -- file path and name
        workbook := ole2.get_obj_property(workbooks,'Open',args);
        ole2.destroy_arglist (args);
        args := ole2.create_arglist;
        ole2.add_arg (args, 'Sheet1');
        worksheet := ole2.get_obj_property (workbook, 'Worksheets', args);
        ole2.destroy_arglist (args);
        ctr := 2;                                                     --row number
        cols := 1;                                                -- column number
        go_block('xxx');
        FIRST_RECORD;  
        LOOP       
                --Column 1 VALUE --------------------------------------------------------------------
            olearg;
            v_stop_load := ole2.get_char_property (cell, 'Text'); --cell value of the argument
            :item1 := v_stop_load;
            cols := cols + 1;                                                      
              --Column 2 VALUE --------------------------------------------------------------------
            olearg;
            :item2 := ole2.get_char_property (cell, 'Text'); --cell value of the argument
            cols := cols + 1;
            --<and so on>
        ole2.invoke (application, 'Quit');
        ole2.RELEASE_OBJ (cell);
        ole2.RELEASE_OBJ (worksheet);
        ole2.RELEASE_OBJ (worksheets);
        ole2.RELEASE_OBJ (workbook);
        ole2.RELEASE_OBJ (workbooks);
        ole2.RELEASE_OBJ (application);
    END;
    --End load data from EXCELPlease mark it as answered if you helped.

  • How  to load the data from excel  file  into table in oracle using UTL_FI

    How to load the data from excel file into table in oracle
    and from table to excel file
    using UTL_FILE package
    Please give me some example

    This is something i tried in oracle apex
    http://avdeo.com/2008/05/21/uploading-excel-sheet-using-oracle-application-express-apex/
    Regards,
    CKLP

  • SQL Loader to Load Multiple Tables from Multiple Files

    Hi
    I wish to create a control file to load multiple tables from multiple files
    viz.Emp.dat into emp table and Dept.dat into Dept table and so on
    How could I do it?
    Can I create a control file like this:
    OPTIONS(DIRECT=TRUE,
    SKIP_UNUSABLE_INDEXES=TRUE,
    SKIP_INDEX_MAINTENANCE=TRUE)
    UNRECOVERABLE
    LOAD DATA
    INFILE 'EMP.dat'
    INFILE 'DEPT.dat'
    INTO TABLE emp TRUNCATE
    FIELDS TERMINATED BY "|" OPTIONALLY ENCLOSED BY '"'
    (empno,
    ename,
    deptno)
    INTO TABLE dept TRUNCATE
    FIELDS TERMINATED BY "|" OPTIONALLY ENCLOSED BY '"'
    (deptno,
    dname,
    dloc)
    Appreciate a Quick Reply
    mailto:[email protected]

    Which operating system? ("Command Prompt" sounds like Windows)
    UNIX/Linux: a shell script with multiple calls to sqlldr run in the background with "&" (and possibly nohup)
    Windows: A batch file using "start" to launch multiple copies of sqlldr.
    http://www.pctools.com/forum/showthread.php?42285-background-a-process-in-batch-%28W2K%29
    http://www.microsoft.com/resources/documentation/windows/xp/all/proddocs/en-us/start.mspx?mfr=true
    Edited by: Brian Bontrager on May 31, 2013 4:04 PM

  • SQL* Loader Loading specific column from CSV file to the table

    Dear All,
    Iam Loading specific column from .CSV file to the oracle table.
    Could pls help how i can load only that cols into the table
    Eg: CSV file having id, Frst_name,Last_name, Address,Phone,Insurance etc
    out of this I want to load only Frst_name,Last_name columns to oracle table say fname and lname.
    Thanks in Adv.
    Junu

    Lily,
    I made some changes to your table def but you will get the idea
    -- Table EMPLOYEE
    CREATE TABLE EMPLOYEE
      EMPID        NUMBER                           NOT NULL,
      EMPNICKNAME  VARCHAR2(10 BYTE)                    NULL,
      FNAME        VARCHAR2(20 BYTE)                NOT NULL,
      MI           VARCHAR2(20 BYTE)                    NULL,
      LNAME        VARCHAR2(20 BYTE)                NOT NULL,
      FULLNAME     VARCHAR2(20 BYTE)                NOT NULL,
      HIREDATE     DATE                             DEFAULT SYSDATE               NOT NULL
    --  data file employee.dat
    1,amy,b,amy b
    2,cindy,d,cindy d
    3,eric,f,eric f
    4,gary,h,gary
    -- Control file : Employee.ctl ( you can use truncate, replace or append , see sqlldr for more options)
    load data
    Truncate into table employee
    fields terminated by ","
    optionally enclosed by '"'
    TRAILING NULLCOLS
    empId INTEGER EXTERNAL,
    FName char(20),
    LName char(20),
    FullName char(30)
    now to load use following or you can speicify infile in control fle
    sqlldr username/passowrd control=employee.ctl  data=employee.dat log=employee.log
    {code}
    Hope this help.
    Regards                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

  • Issue in loading specific columns from a file to teradata table using IKM

    Hi,
    Can any one help to resolve the issue in loading specific columns from text file to teradata table.
    i tried using IKM file teradata and columns are getting displaced.
    my requirement suppose i have 5 columns in file and i have to load only 3columns to table using IKM.
    same thing can be achived using LKM file to teradata but i want use IKM.
    please suggest me on this
    Regards
    Vinod

    Hi,
    I believe that the problem you are having is that you have a delimited file, of which you want to pick columns from position 2,3,5. In this case, ODI will pick the first 3 columns of a delimited file regardless of position.
    For example, if you a tab delimited file with c1,c2,c3,c4,c5 columns, and you want only columns c2,c3,c5 - when mapping these in an ODI interface, and executing, you will actually pick up the data from c1,c2,c3 as these are the first three columns in the file (reading from left to right). You can ignore "columns" on the right hand side of a file, but not the left. E.g delimited file with c1,c2,c3,c4,c5. Only pick columns c1,c2 will give you data for the first 2 columns
    Create a temporary table to load all the data from the file, and use you temp table to extract the data you require. Or you could get the file created with the first three columns as the columns you require.
    Cheers
    Bos
    Edited by: Bos on Jan 18, 2011 1:06 PM

  • Load the text from a file to JTextField, I need help badly

    Can anybody help me, I try to load the text from a file to JTextField,
    it compiled but it does not run
    here the message i get:
    ----jGRASP exec: java buttonAction
    ----at: Sep 11, 2007 6:27:09 PM
    ----jGRASP wedge: pid for wedge is 3104.
    ----JGRASP wedge2: pid for wedge2 is 216.
    ----JGRASP wedge2: CLASSPATH is ".;;.;D:\Program Files\QuickTime\QTSystem\QTJava.zip;D:\Program Files\jGRASP\extensions\classes".
    ----jGRASP wedge2: working directory is [L:\Documents\GUI Pro] platform id is 2.
    ----jGRASP wedge2: actual command sent ["D:\Program Files\Java\jdk1.5.0_01\bin\java.exe" buttonAction].
    ----JGRASP wedge2: pid for process is 1440.
    Exception in thread "main" java.lang.NullPointerException
         at buttonAction.loadData(buttonAction.java:122)
         at buttonAction.<init>(buttonAction.java:31)
         at buttonAction.main(buttonAction.java:163)
    ----jGRASP wedge2: exit code for process is 1.
    ----jGRASP: operation complete.
    private void loadData()
             try
                FileReader fr = new FileReader("myData.txt");
                BufferedReader br = new BufferedReader(fr);
                br.readLine();
                while(br != null)
                   name.setText(br.toString());
                 catch (IOException e){}
          }

    See this demo:
    import java.io.*;
    import javax.swing.*;
    import java.awt.event.ActionListener;
    import java.awt.event.ActionEvent;
    import java.awt.FlowLayout;
    public class TextFieldTest extends JFrame {
         private JLabel fieldLabel;
         private JTextField field;
         private JButton loadTextBtn;
         public TextFieldTest() {
              initComponents();
         private void initComponents() {
              fieldLabel = new JLabel();
              field = new JTextField(30);
              loadTextBtn = new JButton("Load Text");
              this.getContentPane().setLayout(new FlowLayout());
              this.getContentPane().add(fieldLabel);
              this.getContentPane().add(field);
              this.getContentPane().add(loadTextBtn);
              this.pack();
              this.setLocationRelativeTo(null);
              this.setTitle("TextFieldDemo");
              this.setDefaultCloseOperation(EXIT_ON_CLOSE);
              loadTextBtn.addActionListener(new ActionListener() {
                   public void actionPerformed(ActionEvent evt) {
                        loadText();
         private void loadText() {
              try {
                   BufferedReader br = new BufferedReader(new InputStreamReader(new FileInputStream("test.txt")));
                   String label = br.readLine();
                   String data = br.readLine();
                   br.close();
                   fieldLabel.setText(label);
                   field.setText(data);
              } catch (Throwable t) { t.printStackTrace(); }
         public static void main(String[] argv) {
              SwingUtilities.invokeLater(new Runnable() {
                   public void run() {
                        new TextFieldTest().setVisible(true);
    }The contents of test.txt are as follows:
    this is the label
    the data for the field goes here

  • Jfmerge: [240]Failure loading colour palette from form file.

    Hi All,
    I need your help. I am new to JetForm and have to use it because of my work. Recently I have been assigned a task which is to amend an existing form, however, when I opened it with the JetForm Designer, it prompted me with message #4043 with following information:
    The current settings for Symbol Set handling are different
    from when the form was last saved.
    Form: Convert is Yes,950,950
    Current: Convert is Yes,1252,850
    I skipped the warning message and just compile the MDF file directly without any changes. Then, I just got the "jfmerge: [240]Failure loading colour palette from form file." error message during the printing process. May I know how could I fix it? Please help and advise.
    Thanks,
    Charoite

    Hello,
    I have exactly same problem than you while opening an existing .ifd file :
    The current settings for Symbol Set handling are different from when the template was last saved.
    Template : Convert is No,936,850
    Current : Convert is N0,1252,850
    I suppose it is due to chinese characters (Simsun font) bad installed on my desktop, but it is only hypothesis.
    Did you achieve to avoid this message since 05/2011 ?

  • How to load some text from properties file ?

    Hi again,
    problem is i dont know how can i load a text from properties file like #{xxx['key']} in managed bean, i tried to find some solution but havent seen this kind of use this file in java code. Is it supposed to work only for labels in jspx pages ?
    thanks for help ...

    Hi,
    a managed bean is nothing special from any other Java file. However, if you look at SRDemo, you find a nice way of using the same message bundle that you use on the page
    See the messageFromBundle() method in the JSFUtils class of the UserInterface project
    Frank
    P.s. You can download and setup SRDemo from JDeveloper help--> check for updates

  • Load Sales Order from Xml file

    Hi,
    I want to load a sales order from xml file. How can I do so? Where I'll get the xml schema for Sales Order or other documents (delivery,invoice etc)?
    Plz reply with code and xml file.

    When I'm going to load SO from xml file, it's showing an error:
    "The connected value 0 was not found in table Uasge of Nota Fiscal".
    What is this table for? Which attribute is related with this table?
    How can I find out that?

  • How to Load Arabic Data from flat file using SQL Loader ?

    Hi All,
    We need to load Arabic data from an xls file to Oracle database, Request you to provide a very good note/step to achieve the same.
    Below are the database parameters used
    NLS_CHARACTERSET AR8ISO8859P6
    nls_language american
    DB version:-10g release 2
    OS: rhel 5
    Thanks in advance,
    Satish

    Try to save your XLS file into CSV format and set either NLS_LANG to the right value or use SQL*Loader control file parameter CHARACTERSET.
    See http://download.oracle.com/docs/cd/B19306_01/server.102/b14215/ldr_control_file.htm#i1005287

  • How to load the data from flat file ( ex excel ) to Planning area directly

    Hi all ,
    How can i load thedata fro m flat file directly to Planning area .
    PLease help me in this.
    Regards,
    Chandu .

    download one key figure data from planning book ( interactive damand plan) and made some changes and need to upload the data back to same planning book
    But, may I know why you are thinking of downloading, changing and uploading for just changing the figures for a particular key figure. You can do it in the planning book itself.
    However, not all the key-figures can be changed. But, what type of key-figure  you are speaking here? Is it like 'Forecast' for which the value is based on other key-figures, or is like a key-figure where some manual adjustments are to be done--so that it can be manually edited? However,  in both the cases, the data can be changed in the planning book only. In first case, you can change the values of dependant key-figures and in the second case, you can change the key-figures directly.
    And please note that you can change the values of the key-figures only at the detailed level. So, after loading the data in the book, use drill-down option, maintain the data at the detailed level, change the figures, and automatically, this gets reflected at the higher level.
    In case you are unable to change the values, go to the 'Design' mode of the book, right-click your key-figure, under "Selected Rows", uncheck "Output Only" option. In case you are unable to see that option, then you are not authorised to change that. See if you can change the authorisations by going to the "Data View" tab in planning book configuration (/n/sapapo/sdp8b), and change the value of Status to 3.
    Hope your query is answered with different solutions offered by many of the sdn colleagues here.
    Regards,
    Guru Charan.

Maybe you are looking for

  • FormCalc issues with Windows 7

    Hi, I am using FormCalc to check two date fields. The first one, the arrival date, should not be earlier than today's date. The second field, departure date, should not be earlier than the arrival date.  The FormCalc is in the Exit event of the date

  • Can't remove all Rectangles

    Hi, the code below should 1) open a INDD file 2) traverse all pages 3) grab all the rectangles from that page 4) and delete them. things that work: the script traverses trough all the pages (4 pages) he finds all the rectangles on that page but then:

  • My iphone isn't working properly?

    I am experiencing a lot of problems with my iphone 4 today. I can't access my phone calls app or my messages. It keeps freezing. The icloud keeps flashing up for login on an old email address login and it won't let me update it to my new one, it just

  • How to drag and drop button between two toolbar?

    Hi,everybody :) i hava a problem : if i have two toolbar in a frame , and there are some button in each, how can i use dnd package to drag and drop button between two toolbar,such as drag one button in a toolbar to the other toolbar ,i write some sam

  • HT1338 problem with the mac os x mountain lion update.

    i tried to install the update of mac os x mountain lion for macbook air 1,5 but it keeps saying waiting and i'm not doing anything else or can restart or shut down the mac.what do i do?