How to create ActiveX control in Java

I know there are lots of experts in this forum
thats y i'm putting this general question.
Will all devices come with an Active X Control.
"To capture a device's events we can use ActiveX Control."
Hows this statement implemented.???
Thanks for the Sample code

I am new to this. I want to display the data from database like a grid control. Ok, what problems are you having. You been given a link to the tutorial which shows you how to build a table.
There is also a tutorial on [url http://java.sun.com/docs/books/tutorial/]JDB Database Access here:
http://java.sun.com/docs/books/tutorial/
Start by creating your SQL statement and iterating throught the ResultSet. Once you know how to do that, instead of outputting the data you simply build a DefaultTableModel and create the JTable.

Similar Messages

  • How to create ActiveX Control in LabWindows/CVI 2010

    I have LabWindows/CVI 2010 Full Development System (Debug Only) installed on a stand alone PC with Windows 7 (64bit).  Also I have Matlab (R2011a) (also 64bit) installed on this PC.  I tried to use "Create ActiveX Controller" under ""Tools".  I can locate the "Matlab Application (version 7.12) Type Library" in the ActiveX Controller Wizard. After click "next", I got a message "The Type Library is not intended for use on Win32".  My questions are:
    1) Is my LabWindows/CVI 32bit or 64bit?
    2) How to create my Matlab ActiveX Control?
    Thank you.

    Hi JGS,
    It means that you cannot use 64 bit libraries in CVI ti create Activex controls since CVI is a 32 bit application. You can however create 64 bit dlls, executables and static libraries. Here is a link to some information:
    http://zone.ni.com/reference/en-XX/help/370051T-01/cvi/programmerref/creating32bitappsversus64bitapp...
    Regards,
    Perry S.
    Applications Engineer
    National Instruments

  • How to create grid control in java

    hi,
    i want grid control in java like visual basic. can any one give me solution.

    I am new to this. I want to display the data from database like a grid control. Ok, what problems are you having. You been given a link to the tutorial which shows you how to build a table.
    There is also a tutorial on [url http://java.sun.com/docs/books/tutorial/]JDB Database Access here:
    http://java.sun.com/docs/books/tutorial/
    Start by creating your SQL statement and iterating throught the ResultSet. Once you know how to do that, instead of outputting the data you simply build a DefaultTableModel and create the JTable.

  • How to Create adf table from java bean

    Hi,
    How to Create adf table from java class (Not from ADF BC).
    Thanks
    Satya

    @vlsn -- you have to follow what shay said.
    Do the following in Model layer ::
    create a table property java class with your columns setters and getters like :
    *public class gridProps {*
    private int sno;
    private String orderNum;
    *public void setSno(int sno) {*
    this.sno = sno;
    *public int getSno() {*
    return sno;
    *public void setOrderNum(String orderNum) {*
    this.orderNum = orderNum;
    *public String getOrderNum() {*
    return orderNum;
    Create another table java class which will populate the values to your column values and return the collection :
    *public class gridPopulate {*
    private  List<gridProps> gridValues ;
    *public List<gridProps> setToGrid(ArrayList<ArrayList> valuesToSet) {*
    *if (valuesToSet == null) {*
    return gridValues;
    gridValues = new ArrayList<gridProps>();
    if(btnValue.equals("completeBtn"))
    return gridValues;
    for(ArrayList<String> tempArr:valuesToSet)
    gridProps gp = new gridProps();
    gp.setSno(Integer.valueOf(tempArr.get(0)));
    gp.setOrderNum(tempArr.get(1));
    return gridValues;
    Right click gridPopulate class and create this as data control.This class will be seen in Data control list.Under this data control,Drag the grid property collection(created earlier) to your page.Then execute your binding(gridPopulate) according to your logic.
    Thanks.(My jdev version 11.1.1.5.0)

  • How to create web services in java?

    Hi,
    I am a newbie to java webservices. Can anybody tell me how to create web services in java?
    Any tutorial link or step by step doc would be useful.
    Appreciate your help in this regard.
    Thanks in advance.
    naymo01.

    Creating web services in Java appears to depend highly upon the server you intend to use.
    Here's a tutorial: http://java.sun.com/webservices/docs/1.6/tutorial/doc/index.html

  • How to create Activex object for my Visual C++ object

    Hi,
    I am working on development on Acrobat 9.0 SDK. I am facing problem is that I can compiled Visual C++ source code to an api. I can test functions on this api on Acrobat 9.0 windows, but I could not test it on IE web browser, because I don't know how to create Activex object from my Visual C++ source code or its api.
    I read Acrobat 9 SDK document and found under C:\Acrobat 9 SDK\Version 1\PluginSupport\Tools\Visual Studio App Wizard has two files: Acro9PIWizInstaller.msi and setup.exe. I am not very sure those file are the key to help me to create Activex objects for my api.  Are they the one I need to create Activex object? If not, could you please advise me how to create Activex object for my api or C++ codes.
    Thanks a lot for any of your comments or advices.
    Thai

    Hi lrosenth,
    Thanks a lot for your information.
    My question is, on Javascript how do I call a function from .api. Below is my very simple test.
    I got a function on BasicPlugin.cpp under C:\Acrobat 9 SDK\Version 1\PluginSupport\Samples\BasicPlugin. See below.
    I added BasicPlugin.api on C:\Program Files\Adobe\Acrobat 9.0\Acrobat\plug_ins
         ACCB1 int ACCB2 MyPluginCommand() {
              int num = 5;
              return num;
    On my HTML file, I create an <Object> below:
        <OBJECT id="acrobatapp"
                classid="clsid:85DE1C45-2C66-101B-B02E-04021C009402">
        </OBJECT>
        <OBJECT id="acrobatpdf"
                classid="clsid:CA8A9780-280D-11CF-A24D-444553540000"   >
            <Param name="SRC" value="http://www.adobe.com/devnet/acrobat/pdfs/acrobat_digital_signature_appearances_v9.pdf">
       </OBJECT>
    On my Javascript. I call function MyPluginCommand() as below, but it is not working. How do I call function MyPluginCommand() on Javascript?
         var acrobatapp= document.getElementById("acrobatapp");
         var num= acrobatapp.MyPluginCommand();
         alert(num);
    Thanks for your support,
    Thai

  • How to Create a Control In Notepad

    Hello:
    I am need help creating a control file. I have never done this before. I have to load the following script into notepad:
    load data
    infile 'names.txt'
    badfile 'names.bad'
    truncate
    into table names
    fields terminated by ','
    trailing nullcols
    (first,last)
    I then went to Command Prompt to begin the SQL Loader command and recieved the following message.
    SQL*Loader-500: Unable to open file (names.ctl)
    SQL*Loader-553: file not found
    SQL*Loader-509: System error: The system

    DUPLICATE post
    How to Create a Control In Notepad

  • How to run .jar on linux & how to create .jar file using java?

    hi, may i know how to run .jar on linux & how to create .jar file using java? Can u provide the steps on doing it.
    thanks in advance.

    Look at the manual page for jar:
    # man jar
    Also you can run them by doing:
    # java -jar Prog.jar

  • How to create table control and link in screen exit

    Hi Friends,
                     I want to create table control in enhancement CONFPP07.  The values entered in table control should be stored in ztable along with some other information.
    But I want to know how to create table control in screen-exit and how and where to write code and how to link all.
                   Kindly send me step-by-step documentation or real time examble prg.
                   Kindly give ur answers for this problem only.
    Thanks in Advance,
    S.Senthil kumar

    If u have a  screen exit..then u will have a option to create a sub screen..in that sub screen u activate the pai and pbo events..it will show u where to write the code..

  • How to create table control without wizard....???

    Hello experts !!
    Plz tell me how to create table control without wizard.
    for sflight table.
    Scenario 1
    I have one screen like 1000.
    There i have taken carrid, connid, fldate as criteria.
    Now i want to display Planetype, Price, Seatsmax in the table control.
    Scenario 2
    i have two screens 1001, 1002.
    in the screen 1001 i have taken carrid, connid, fldate as criteria and there is a Button.
    when i will click the button it will show the price, planetype and seatsmax in the table control in the next screen, i.e 1002
    plz help me out...
    and how to save new record in the dictionary table from that table control....

    Hi
    see the sample programs and design accordingly
    syntax:
    CONTROLS .
    if you only want to determine the row of the table control. SY´-SUBRC allows you to check if the cursor is placed in a row of a table control.
    u need to comment the performs of table control fields and write ur own perform statements. And u have to declare the table control fields as separate internal tables.
    Go through this urls.
    www.****************
    www.sap-img.com
    Check the below links.
    just refer to the link below
    http://www.sapmaterial.com/tablecontrol_sap.html
    step by step procedure with screen shots
    http://www.planetsap.com/howdo_a.htm
    http://help.sap.com/saphelp_nw2004s/helpdata/en/9f/dbac5135c111d1829f0000e829fbfe/content.htm
    http://sap.niraj.tripod.com/id25.html
    Also you can see the below examples...
    Go to se38 and give demodynpro and press F4.
    YOu will get a list of demo module pool programs.
    One more T-Code is ABAPDOCU.
    YOu can find more examples there.
    See the prgrams:
    DEMO_DYNPRO_TABLE_CONTROL_1 Table Control with LOOP Statement
    DEMO_DYNPRO_TABLE_CONTROL_2 Table Control with LOOP AT ITAB
    http://www.geocities.com/ZSAPcHAT
    http://www.allsaplinks.com/files/using_table_in_screen.pdf
    Regards
    Anji

  • How to create a control to work with a select function to display two separate texts.

    I'm currently taking a Labview course at my college and for a starting project we need to create a problem to convert x amount in USD to either Yen or Euro using a toggle switch and a select boolean function. I need to know how to display a text label for the Yen value and for the Euro value being displayed in the same numeric indicator when selected. Basically I have the program working I just need to know how to create a control that will show Yen next to the value when it calculates for Yen and likewise for Euro   

    Richx9252,
    As Ravens Fan said you can either use a string indicator next to the numeric indicator to display the currency type or use a property node to edit the label of the numeric control to display the current currency type.  Please let us know if you have more questions about how this will work.
    Regards,
    Sam K
    Applications Engineer
    National Instruments

  • How to create sub domain using java ?

    how to create sub domain using java ?
    for example:
    name1.domainname.com
    name2.domainname.com
    is it possibe ?

    You don't do that using Java.
    Consult the documentation of the application server in question how to configure it. If you're using for example Tomcat 6.0, then you should be consulting this document: [http://tomcat.apache.org/tomcat-6.0-doc/virtual-hosting-howto.html].

  • How to create webservice in Webdynpro java

    Hi Experts,
          I need to develop one application in Visual Composer.Since VC doesn't support coding so i need to create Webservice in webdynpro java and use that webservice in VC.Can any one of you please suggest how to create Webservice in Webdynpro Java.
    Regards,
    Prasanna.

    Hi prasanna,
    Refer this links.
    /people/sridhar.k2/blog/2006/09/12/creating-and-exposing-bapi-as-web-service-and-using-it-in-web-dynpro
    BAPI Exposed as Web Service
    Connect R/3 from Java web application
    Web Dynpro integration with R/3
    http://help.sap.com/saphelp_nw04s/helpdata/en/82/6a0e7bbe744276bf393654b9b576ed/frameset.htm
    Regards,
    karthik.

  • How to remove ActiveX control on my website

    Hi~
    When I create a Website, I used a behavior (pop-up menu)
    function on my main menu bar. When I run the webpage with IE, it
    shows ActiveX control message on the top of the webpage showing
    “This site might require the following ActiveX control
    How can I remove or avoid this message appearing on my
    website?
    Please give me an advice.
    Think you.

    ghleo wrote:
    > When I create a Website, I used a behavior (pop-up menu)
    function on my main
    > menu bar. When I run the webpage with IE, it shows
    ActiveX control message on
    > the top of the webpage showing ?This site might require
    the following ActiveX
    > control ? ??.
    This occurs only during local testing. It doesn't happen when
    the page
    is deployed on the Internet.
    To get rid of the message for local testing, use Commands
    > Mark of the
    Web in Dreamweaver CS3. If you're using an older version of
    Dreamweaver,
    Google "mark of the web".
    David Powers, Adobe Community Expert
    Author, "The Essential Guide to Dreamweaver CS3" (friends of
    ED)
    Author, "PHP Solutions" (friends of ED)
    http://foundationphp.com/

  • ActiveX control from Java

    Hi.
    I have few ActiveX components which I want to control from Java.
    I have googled for some solutions and found the following:
    1. Write a C code which will behave as a bridge between ActiveX component and Java (using JNI). But this seems to be rather very complicated :p
    2. I have found one very interesting paper at javaworld (http://www.javaworld.com/javaworld/jw-03-1997/jw-03-avb-tech.html?page=7). They compare ActiveX components and Java Beans there. There is also stated that (for example) it is possible to "develop an ActiveX control in Visual Basic that opens a window and adds a C++ AVI player (an ActiveX control), and then operate the player from a Java applet." However, I can't find any sources or samples which shows how to do such things in practise.
    Can anybody help me with this?
    Many thanks
    Miso

    See Tool at
    http://www.simtel.net/product.php[id]93010[SiteID]simtel.net

Maybe you are looking for

  • How to insert a hyperlink into a Paragraph text

    hi everybody~ for example: this encourages people to answer for points and helps you track answers. how can I insert a hyperlink in the word:"answer for points"? Louis.

  • RAW image workflow problem

    I originally posted a similar question about a strange behaviour when using Adobe DNG files. The issue first appeared some time between 6 and 21 December when converting Minolta RAW files to DNG; before that conversions had gone smoothly and it took

  • Unable to set custom speed to motion path on Camera

    This is a followup question to "Controlling speed along motion paths" (Many thanks to Mark Spencer and specialcase for the their excellent insights getting me this far =) After experimenting with motion paths and realizing they were indeed what I was

  • Writing value in the parent curr adjs node of the value dimension

    Hi, Is it possible to write amount in the parent curr adjs node of the value dimension through rule. If yes, how Thanks & Regards mnr

  • Org.apache.xerces.parsers.SAXParser

    After compiling ,while trying to run my program is giving on the console window. "org.apache.xerces.parsers.SAXParser" instead of what it is supposed to do . i am using java 1.4.2 and xerces 2.7.1 Can Anyone point what is the problem with this. thank