Opening a Java GUI with Matlab? Is this possible?

Hi all,
I'm developing a GUI using Netbeans 5.5 in Java 1.6. The computational power that this GUI interfaces with will be Matlab-based. My problem right now is getting Matlab to recognise my GUI-class. I've added the .jar to Matlabs dynamic classpath but when I try to call a method it is not finding the class at all.
Firstly, I'd just like to verify that what I'm doing IS possible. There exists a way to create a GUI in Netbeans, build it to a .jar, and then access the classes in Matlab so I can open the GUI through Matlab, right?
I've tore through the MatLab site but calling a user-defined class's method is not very well documented ("Just add the .jar to the classpath and call the method using it's full class name" isn't cutting it for me right now.)
ANY help AT ALL would be greatly appreciated. I've dumped hours into what I assume to be a problem with a simple solution.
Thanks
Craig

And before anyone says "Google" or "check the documentation" I've torn through the MATLAB (mathworks) site and read every page that even mentions Java (beans or otherwise) and I've googled, trust me I've googled.

Similar Messages

  • Updating a Java GUI with c++

    Hi,
    I've been working with JNI for a few months now, but I am struggling with an important piece of the application I'm creating. What I have is a Java GUI which I use to create an existing c++ application through JNI. What I would like to do is have the c++ print all of its output to a window within the Java GUI. I thought surely others have wanted to do the same thing, but I have not found any threads addressing the idea. Here is what I've tried/thought of so far without success:
    1) I could have Java poll the c++ application to see if there are any updates to be printed, but that seems clunky and I'm not even sure how well it would work. I would like it to print as it happens (i.e. have c++ tell the gui to print as it becomes available)
    2) It seemed intuitive that I could simply pass the JNIEnv pointer, methodID, and the object to the c++ class to be stored for later use. But after it crashed I found a thread (http://forum.java.sun.com/thread.jspa?threadID=755242&tstart=225) which says you should never pass the JNIEnv (I don't know why). This same thread also gave some suggestions on how to attach to a current thread and then destroy, but also mentioned that once you destroy the VM, it can't be recreated and that won't work for me.
    Any suggestions are greatly appreciated.
    -Mark

    And before anyone says "Google" or "check the documentation" I've torn through the MATLAB (mathworks) site and read every page that even mentions Java (beans or otherwise) and I've googled, trust me I've googled.

  • I have a new ipod that I would like to share my itunes library with. Is this possible?

    Can someone help me and give me an idea as to whether or not is possible to have multiple Ipods and a shuffle share the same Itunes library on the same computer.  I attempted to drag the music on my itunes to another IPOD and it will not allow it.  Please help.  Thank you.

    Just plug the iPod in and open iTunes. It will the iPod will show in the devices section of the iTunes sidebar. Click on the iPod go to the summary tab and set you syncing options. You can do this for as many iPods/iPhones/iPads as you like.

  • Replace substr, instr with Reg_exp, is this possible,

    Hi Team,
    I have Small requirement below, i have writen Query For this but was thinking Is there Any better way Of
    doing it, esp With Use To reg_exp,
    i have Some code As shown below
    '23456_TR_ABC_CODE12_JPM-(1)100-(1)150'
    From this code i Only want portion which Is Between 'TR_' And '_CODE12' i.e. ABC,
    given Is my Query And its output
    Select
    substr( substr('23456_TR_ABC_CODE12_JPM-(1)100-(1)150',instr('23456_TR_ABC_CODE12_JPM-(1)100-(1)150','TR_',1,1)+3),
            1,
            instr(
                  substr('23456_TR_ABC_CODE12_JPM-(1)100-(1)150',instr('23456_TR_ABC_CODE12_JPM-(1)100-(1)150','TR_',1,1)+3),
                  '_',1,1
                  -1) "word"
    From dual;
            word
    1     ABC
    kindly let me know If there Is Any better way Of doing it,,,

    Jeneesh, in case there are several TR_ or _CODE12 in the line I'd advice to use non-greedy operators.
    SQL> with t as
      2     (select '23456_TR_ABC_CODE12_JPM_(1)_100_CODE12_ASJ' word from dual)
      3     select regexp_replace(word, '.*TR_<font color="red">(.*)</font>_CODE12.*', '\1') word
      4       from t;
    WORD
    <font color="red">ABC_CODE12_JPM_(1)_100</font>
    SQL>
    It is working with (+) sign.
    SQL> with t as
      2     (select '23456_TR_ABC_CODE12_JPM_(1)_100_CODE12_ASJ' word from dual)
      3     select regexp_replace(word, '.*TR_<font color="blue">(.+?)</font>_CODE12.*', '\1') word
      4       from t;
    WORD
    <font color="blue">ABC</font>
    SQL>
    But I don't understand why it is not working with (*) sign :((
    SQL> with t as
      2     (select '23456_TR_ABC_CODE12_JPM_(1)_100_CODE12_ASJ' word from dual)
      3     select regexp_replace(word, '.*TR_<font color="green">(.*?)</font>_CODE12.*', '\1') word
      4       from t;
    WORD
    <font color="green">ABC_CODE12_JPM_(1)_100</font>Maybe someone can explain?
    Several more examples:
    the first and the last of them are really strange, at least for me:
    SQL> with t as
      2     (select '23456_TR_ABC_CODE12_JPM_(1)_100_CODE12_ASJ' word from dual)
      3     select regexp_replace(word, '^<font color="red">.*</font>TR_<font color="red">(.*?)</font>_CODE12.*$', '\1') word
      4       from t;
    WORD
    <font color="red">ABC_CODE12_JPM_(1)_100</font>
    SQL>
    SQL> with t as
      2     (select '23456_TR_ABC_CODE12_JPM_(1)_100_CODE12_ASJ' word from dual)
      3     select regexp_replace(word, '^<font color="blue">.*?</font>TR_<font color="blue">(.*?)</font>_CODE12.*$', '\1') word
      4       from t;
    WORD
    <font color="blue">ABC</font>
    SQL>
    SQL> with t as
      2     (select '23456_TR_ABC_CODE12_JPM_(1)_100_CODE12_ASJ' word from dual)
      3     select regexp_replace(word, '^<font color="red">.*?</font>TR_<font color="red">(.*)</font>_CODE12.*$', '\1') word
      4       from t;
    WORD
    <font color="red">ABC</font>
    SQL>

  • Dynamic query structures with restrictions - is this possible

    Hi experts,
    We have a client that has hard coded query structures, much to our chagrin.  These structures change quarterly and because the structures are used across several queries and workbooks, I need to find a new solution that will makes the dynamic and can be updated in production.  We have investigated the use of hierarchies for this, and unfortunately this will not work.
    Also, their queries are locked down in production, so all changes must transport from Dev to QA to Production.  This setting is mandated from the parent company, so changing this is not possible.
    Question:  Is it possible to write a WebDynpro or ABAP program that will allow users to change these hard coded structures?  What tables would be used for this?   I'm hoping we can create custom tables that dynamically populate the structures of the query, but I have doubts this can be done. 
    I suspect this is a stretch, but I'm hoping somebody might have attempted this. 
    Any ideas would be appreciated.  We're proficient in BI so any suggestions would be great.
    Example structure:
    P&L Structure
    Revenue ......................(restricted on Revenue GL accounts)
    Out of Pocket Revenue.....(restricted on Out of Pocket GL accounts)
    Total Revenue...................(total of the Revenue and Out of Pocket Revenue from above)
    Best,
    Larry

    ...to put a maintainable table in front of the users can be as easy as creating a  'parameters' cube and putting an input ready query on it. Lots of other options, such as a simple custom table and a gui based form to maintain, but I've used exit variables looking up values from custom parameter cubes a great deal in planning applications.
    Another alternative may be to add a new attribute to your gl accounts to indicate the nominal reporting group, and base your variable exits or row structures on that, leaving your users simply to mainain their GL Account Mastre data as required.
    Edited by: Andrew Trousdell on Jun 18, 2010 4:07 AM

  • Registering MBeans with rmiregistry - is this possible?

    I created an application which offers an MBean to allow instrumentation - so far so good. I can control it with JConsole and the standard jdk6 system settings.
    Problem is, if I have two instances of the same application or different applications which attempt to use the same com.sun.management.jmxremote.port, there will be a port conflict and the second instance won't start.
    I thought of running the standalone rmiregistry utility and registering each application with it, using the single instance of rmiregistry so that each instance won't need its own port - is this at all possible?

    Hi,
    as far as I understand it, a high number of "Total loaded" should not necessarily be a problem, as long as classes are unloaded again, i.e. the number of "currently loaded" classes remains somewhat constant.
    Taking this into account, using -Xnoclassgc should be a bad idea, because it should leave you with a growing number of classes currently loaded - which in the end will blow the permanent generation of your JVM (at least this is what was the case at one previous project).
    If the number of classes is becoming too big and the permanent generation fills up, you should be seeing OutOfMemoryErrors pointing to the permanent generation.
    I suggest you should be checking other possible causes. Have you been logging garbage collection output to check whether it is really garbage collection that causes your application to freeze at some point? Maybe it is possible to provide a little more information on the problem?
    Bye.

  • E220R with D1000 is this possible?

    Hi i have an E220R running SunRay 2.0 but also require it to use samba to backup ghost images to a D1000. Problem is that ive never setup a D1000 array, and have no idea how to do it...are there any walkthru's or step by step instructions on how to do this?
    Im running Solaris 9 on the box and think that I am using the correct scsi cables to connect the box to the D1000.
    How do i find out if the system has recognised the array disks?
    How do i then configure the box to use the array? preferably as a mirrored set of 4 vs 4 disks?
    All help would be appreciated

    I have an Enterprise 220R with Solaris 9 O/S, and a SunStorEdge D1000. I understand that the onboard SCSI SE is incompatible with the SCSI on the D1000, however I have a PCI dual SCSI card which is Differential installed on the 220R. Using a sun 530-2453 cable I have connected the 220R to the 1st Interface on the D1000, and then linked the other SCSI interfaces using a HPDB68M to HPDB68M cable, finally teminating it at the last interface with a terminator. It all seems to be connected correctly but the 220R refuses to recognise the D1000. I have used the devfsadm -c disks command to see if the system recognises it but with no joy. Ive looked over the docoumentation again and again but seem to be getting no where.
    Basically my configuration is:
    Enterprise220R ->- StorEdge 1st SCSI interface ->- HPDB68M cable(2nd SCSI interface) ->- HPDb68M(3rd SCSI interface) ->- SCSI Terminator.
    I also went to the OK prompt and typed in probe-scsi-all and received a BUS FAULT over and over.

  • I have 2 emails accounts and would like to be able to have them both open at the same time. Is this possible?

    I have 2 emails accounts and would like to be able to have them both open in Firefox in different tabs and be able to access each one. Now what I have to do is open one account in Firefox and open the other account in Internet Explorer. I would like to just use Firefox, if possible. Can you help me?
    Thank you,
    Phyllis

    hi melansonp, these 2 emails accounts are from one webmail or from 2 differents ?

  • HT5866 my screen on my 5C have crack n I need to replace the lcd screen with digitizer is this possible?

    I need to replace my crack 5C screen, any help

    If you are in the US, some Apple stores have the ability to replace a screen, some do not. If they can, the cost is only $149. If they cannot, then without Apple Care + you would need to purchase an out of warranty replacement at a cost of $269. If you do have Apple Care +. you can make 2 total exchanges over the 2 year life of Apple Care + with a $69 deductible.

  • Just starting out with extensions, is this possible?

    I have started researching the Adobe Creative Suite Extension Builder and I find that there is an overwhelming amount of information on this tool. I have an idea for extension that I want to build but I want to start by asking the community a question.
    Assuming this extension is for Flash Pro, Photoshop, or Illustrator, is it possible to obtain data from a layer that includes the positions (x,y) and dimensions (width,height) for each object in a layer?
    Gladly appreciate any help or advice you can give, thanks!

    Hey MSSDedalus,
    I looked through some of the class documentation and it seems that what I'm looking for is somewhat possible (at least using the Illustrator APIs, look at the PageItem class if interested). Would you happen to know where the documentation is for the Flash Pro CS6 API? I'm only able to find the JavaScript API for Flash Pro.
    Thanks!

  • Help! Can't open Labview program with MATLAB codes !!!

    They used to work! But today I just can't open any LabView program with MATLAB codes in. This also happened some time ago, but after a day I tried again, it went back to normal. Can anyone help me fix it? Many thanks !!!

    Hello BLpig,
    Thank you for your inquiry regarding problems opening a VI. It sounds like a VI containing MATLAB code will not open in LabVIEW. This problem can happen when using LabVIEW 7 on a Windows 2000 machine. Assuming this is your setup, the following link is a great resource when dealing with this issue.
    http://digital.ni.com/public.nsf/websearch/4475BC3CEB062C9586256D750058F14B?OpenDocument
    Other resources similar to this can be found on the ni.com website by clicking the support tab at the top of the home page. Then search for �open vi matlab� from Technical Resources at the top of the page or topics similar to this. I hope these resources help. Let me know if I can further assist you.
    Shea C.
    Applications Engineering

  • ��Java with Matlab??

    Hi, I�m new in this group. I try to connect a Java interface with matlab, i use JBuilder and i try to use ActiveX but JBuilder 5.0 don�t support ActiveX. How can i do it?
    Excuse me for my bad English.

    You could just use the extern part of Matlab to implement an external invocation of the Matlab engine from a C or Fortran program.
    Now if you wrap this C implementation in Java through the JNI you would be able to invoke Matlab functions directly from Java.
    The other way around is directly supported from Matlab 5.3 and up.

  • Java GUI open source components ?

    Hi guys;
    I'm writing a desktop Java Application that I'm planning to sell later on.
    The point is that I want the GUI to look sharp : so I don't plan to use the Ugly looking java Swings.
    the look I'm looking for might be close to MS office 2003 or even better.
    I wonder if there are some FREE OPEN SOURCE java GUI components that I can integrate into my code ?
    Please let me know if you have any Ideas about this issue .
    Many thanks for your precious Help !

    Try this:
                UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName());That attempts to set swing's L&F to one which matches the OS you're running it on.

  • Connecting Java Application with Microsoft Word Toolbar

    My project involves designing a GUI with which I will use Java for. And I also have to create a Microsoft Word Toolbar that will open the Java GUI. There will be other interactions between both the GUI and the toolbar.
    Is that possible? Or shall I use Visual Basic or .NET for the GUI?
    Advice appreciated please!

    hi
    check this
    http://help.sap.com/javadocs/NW04/current/bi/docs/connectors/sapq_howto.html
    let me know am i reached ur  point
    bvr

  • Image Save from Java GUI

    Hi,
    I am currently working on project which is basically development is going on Java Spring and Oracle 10g
    I have a problem when i am calling the procedure from Java GUI
    I am created directory named IMAGE_DIR
    CREATE OR REPLACE PROCEDURE u_rfnd_cnd_test
    (ackno in varchar2, p_name IN u_rfnd_cnd_petition.URCP_IMAGE_NM%TYPE) IS
    v_bfile BFILE;
    v_blob BLOB;
    BEGIN
    INSERT INTO u_rfnd_cnd_petition (URCP_ACK_NO, URCP_IMAGE_NM, URCP_IMAGE)
    VALUES ( ackno,p_name, empty_blob())
    RETURN URCP_IMAGE INTO v_blob;
    v_bfile := BFILENAME('IMAGE_DIR', p_name);
    Dbms_Lob.Fileopen(v_bfile, Dbms_Lob.File_Readonly);
    Dbms_Lob.Loadfromfile(v_blob, v_bfile, Dbms_Lob.Getlength(v_bfile));
    Dbms_Lob.Fileclose(v_bfile);
    COMMIT;
    END;
    When i m calling this procedure from Oracle itself its working fine
    But when calling this procedure from Java GUI with same parameter then i am getting error
    Error :java.sql.SQLException: ORA-22288: file or LOB operation FILEOPEN failed
    The system cannot find the path specified.
    ORA-06512: at "WBCOMTAX.U_RFND_CND_TEST", line 18
    can anyone please help me out ?
    thanks in advance

    Generate the image from that html page.What would be the best way to generate an image of the
    browser rendered page? This is another issue I have
    struggled with.Ok, using a JEditorPane it is possible to render a HTML Page. Like all other Swing components it inherits the paintComponent method from JComponent. Simply generate an offscreen image and get its graphics context. Now you can pass this Graphics object the paintComponent and you get an image of your HTML page.
    Just make sure your offscreen image has the correct size. I guess this information is available from the JEditorPane.
    Use a PixelGrabber to get the image data and scan itfor the area the
    default.gif is placed.How would you use the PixelGrabber to find, or scan,
    for a 'default.gif' or multiple 'default.gif's? This
    too is an issue I have tried to wrap my mind around.This is the tricky part of it. Using the PixelGrabber you should get an array of pixel values. If you iterate thru this array it should be possible to find the pixel values of the default.gif (at least, if you choose a colr for your default.gif that does not appear in your HTML page incliding the other images).
    Now you have to replace those pixels with the pixels you have generated for your applets.
    J&ouml;rg

Maybe you are looking for

  • GRPO Qty should not exceed +/- 10% of Purchase Order

    Hi All , Need Store procedure for GRPO QTY should not deviates +/-10% of the Puchase Order Qty. Ashish Gupte

  • PCA- need help

    Hi, I am trying to create the same layout in PCA as the report painter but all the characteristics that are in the report painter are not available at planning layout. Is there any option to get all the characterstics into PCA that exists in report p

  • Error when opening project

    Hello, anytime I open the last project I have been working on, this error pops up and causes premiere to crash.  I was able to revert to an autosave from this morning but it is 10 hours behind in work from the newest version.  Please help.

  • Ridiculous Connection Speeds

    Hi All, Following issues with line noise which have gone since removing the front plate from my OpenReach master socket and plugging directly in there, I now have an issue with really poor latency and speeds. I don't want to have to restart the HH3 a

  • PDF / SWF reader on portal

    Experts, I'm looking for a way to embed a PDF and / or SWF reader in the portal. I'm looking for the functionality like Adobe Flashpaper is offering. I want to show some newsmagazines in the portal with the possibility to navigate through the pages,