Java GUI in same frame

Hi,
Using the Bean area I was able to bring up Java GUI on the client side. This Java GUI is displayed outside the Oracle main frame. Is there any way to show these Java GUI's under the same Oracle frame itself?
-murali

murali,
I think that there is no straight and easy answer to this and one would have to drill down into how a Forms is composed in the client Applet. You will have to check if MDI is used as a runtime parameter and then get a hold to the Forms Window. Also, you will have to use ewt classes to build the GUI to make sure the look and feel is the same. I don't have an answer for you, but its an interesting challenge to face.
frank

Similar Messages

  • 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örg

  • JAVA GUI window content does not fill out when window is enlarged (Win,Mac)

    I've been using the SAP JAVA GUI on a Windows XP workstation as well as a couple of MacBooks running OS X over the last year and a half or so, running versions from 7.10 r 7(maybe earlier) thru 7.10 r 10 (installed today.) The GUI has performed generally well on these platforms, but has one major irritation.
    When I open certain pop-up windows, such as the SPAD [List of Output Requests > Status Description |http://img171.imageshack.us/i/screenshot20091006at241.png/|screenshot], it usually does not open a  large enough window to display all the data - one must scroll horizontally and/or vertically to see the entire window content.  The real aggravation is that if [one enlarges the window|http://img101.imageshack.us/i/screenshot20091006at242.png/|screenshot] so as to see more data, the resizing is ignored.  The contents of the window are still displayed within the original window boundaries instead of filling out the expanded window.   It is not possible to get the entire window contents displayed, it is still necessary to scroll around.
    What am I missing here?   How can I get window resizing to work correctly?   (Or is there a way to make such windows at least open up at a larger initial size??)
    I only found one other thread in this forum, Sap gui screen size in ubuntu., which seemed to be addressing the same problem, but the suggestion was to apply the latest patch to the GUI and get JAVA 1.6.   One would think that since that post in 2008, any patches would have made it into the latest revisions.  I'm already running Java 1.6.
    SAPGUI for Java 7.10 rev 10
    (Version ID 071000041000)
    Tue Sep 8 09:49:53 MEST 2009
    uw1059, 710_REL, 1093492
    Java VM: Apple Inc. Version 1.6.0_15
    OS: Mac OS X(i386) Version 10.6.1
    SAPGUI for Java 7.10 rev 10
    (Version ID 071000041000)
    Tue Sep 8 09:49:53 MEST 2009
    uw1059, 710_REL, 1093492
    Java VM: Sun Microsystems Inc. Version 1.6.0_15
    OS: Windows XP(x86) Version 5.1
    Any suggestions?  Anyone else even seeing this?
    Thanks!
    Rich

    I'm now running
    SAPGUI for Java 7.10 rev 11
    (Version ID 071000041100)
    Tue Dec 8 16:04:41 MET 2009
    uw1059, 710_REL, 1119101
    Java VM: Apple Inc. Version 1.6.0_17
    OS: Mac OS X(i386) Version 10.6.2
    I've also updated my XP system to 7.10 rev 11 and both continue to display the same failure to resize corrrectly.  
    Here's a [video capture of this behavior|http://img163.yfrog.com/i/sapresizebug.mp4/].
    Given that installs on two separate operating systems have consistently misbehaved like this, I have a hard time believing it is something  we are doing.  (But not that hard...)  I find it hard to believe that is the way these screens present on most SAP sites...
    Any comments or suggestions would be welcome!
    Rich

  • Same Frame...Not (Hyperlinking)

    I have RoboHelp installed on my laptop, where I'm working on
    my project.
    In one Topic I have references to external links, with the
    choice to open the resulting link in the same frame
    (Hyperlink Options-Display In Frame=Same Frame).
    When I test it on my laptop, everything works perfect. The
    hyperlink document opens up in the same frame.
    But when I copy the data files to my work's server and test
    it, the hyperlink document is opening up in a new
    window.
    Both my laptop and work's IE is 6.0.
    Things I've checked...pop-up blocker is off and target=_self
    is in the code (when I view source).
    Any ideas what the cause is?
    Thanks
    Doug

    jupp61 wrote:
    I'm afraid I'm a newbee in Java.No problem
    Therefore your answer is hard to understand. Can you provide me more details i.e. an example? As for examples, you'd be best served looking at the Sun Java tutorial on SwingWorker. The explanations and examples there would be far better than any of mine.
    What is EDT? Yes, I'm using Java 6.EDT = event dispatch thread. This is the main thread of any Swing program. You press a button and responds and draws itself on this thread. If you ever try to do a long CPU or time intensive task on this thread, or call Thread.sleep(...) (as you've done), you will put this thread to sleep, and the entire Swing app will be frozen until the EDT is functioning again.

  • Integrating Another Program Into A Java GUI

    HI
    I have 3 classes here. One is a Java GUI, the other two are involed in
    stripping and processing of information off a webpage.
    Of these latter two classes, one contains a main method which connects
    to a webpage and reads the info off it, it calls the other class which
    parses this information and holds the variables I need to create
    buttons for the main gui!
    Is it possible at all to integrate, the class that reads the webpage,
    into, the Java GUI class.I need to do this to access the variables
    that the parsing class is holding, as previously I have had to create
    an instance of this class in the webpage reader class, but this was no
    good to me as the GUI could not access this information, i.e can I
    create an instance of this stripper at the begining of main in the GUI
    class so as I can use the results for this for producing my buttons?
    I've tried to do this but I am getting unresolved symbol errors. I was
    wondering should I use global variables to hold the needed info also ?
    Any help at all greatly appreciated,
    Thanks
    Gerry

    I did what you're describing. Sounded simple enough. You put the same logic in main() into the applets init() and you can run as app or applet. Worked well in my IDE. Then the troubles start.
    Visit
    http://www.martinrinehart.com
    and read the Article, Launching Applets. That will get you started on launching a Swing application. (Try my Sample, DawnPainter, to give you an idea about how nice this can be when it works.) I promise but don't deliver (yet) an article on the javascript library I wrote that solves all the problems. For non-commercial use you can get your own copy:
    http://www.martinrinehart.com/examples/launchApplet.js

  • 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.

  • Need help with Java GUI

    I'm a bit unfamiliar with the features of the Java GUI which I'm using for an online game I'm making. Specifically, I can't move around the different components the way I want to. I want to have my game on one frame, but made up of 3 different parts. The top half will be the the actual game where the images are displayed, then below that will be a scroll pane to show all the messages the player has received, and the bottom part will be a text field so the player can send messages. I have the text field and scroll pane working, but the problem is that the scroll pane takes up the entire screen (except for the text field) and I can't find any way to resize it and move it to the bottom, just above the text screen, the way I want it to be. I'm using JTextField for the text field, and JDisplayArea and JScrollPane for the scroll pane.
    Here are two images in case you can't visualize what I am saying. This is what it looks like now:
    http://img127.imageshack.us/img127/1294/beforeob1.jpg
    And this is how it should be:
    http://img127.imageshack.us/img127/8724/aftedzu7.jpg
    Help would be greatly appreciated. Thanks in advance.

    Does the class that implement your game panel provide a meaningful return value for the method "getPreferredSize()"? I guess you use a BorderLayout, don't you? In this case the game panel isn't visible because it doesn't tell the LayoutManager what size it wants and so it gets a 0,0 size.
    Greetings
    Stefan

  • Troubles with launching Java GUI from C++

    Hi,
    I'm launching a Java program from my C++ program (in linux). For C++ I'm using the Xm library for the GUI. When I want to instantiate a new Java object, I get the following error:
    An unexpected exception has been detected in native code outside the VM.
    Unexpected Signal : 11 occurred at PC=0x4015C475
    Function=XmRenderTableFree+0x15
    Library=/usr/X11R6/lib/libXm.so.2
    This is a backtrace (see #17):
    Program received signal SIGSEGV, Segmentation fault.
    [Switching to Thread 1024 (LWP 19643)]
    0x4015c475 in XmRenderTableFree () from /usr/X11R6/lib/libXm.so.2
    (gdb) backtrace
    #0 0x4015c475 in XmRenderTableFree () from /usr/X11R6/lib/libXm.so.2
    #1 0x40153cd9 in XmFontListFree () from /usr/X11R6/lib/libXm.so.2
    #2 0x4c6ed4c4 in Java_sun_awt_motif_MComponentPeer_pSetFont () from
    /localhost/packages/java/j2sdk1.4.0/jre/lib/i386/libawt.so
    #3 0x423b6129 in ?? ()
    #4 0x423aef93 in ?? ()
    #5 0x423aef93 in ?? ()
    #6 0x423aef93 in ?? ()
    #7 0x423aef93 in ?? ()
    #8 0x423aeebc in ?? ()
    #9 0x423aef93 in ?? ()
    #10 0x423aef93 in ?? ()
    #11 0x423ac195 in ?? ()
    #12 0x404d6156 in JavaCalls::call_helper () from
    /localhost/packages/java/j2sdk1.4/jre/lib/i386/client/libjvm.so
    #13 0x40570ccd in os::os_exception_wrapper () from
    /localhost/packages/java/j2sdk1.4/jre/lib/i386/client/libjvm.so
    #14 0x404d62a4 in JavaCalls::call () from
    /localhost/packages/java/j2sdk1.4/jre/lib/i386/client/libjvm.so
    #15 0x404de12d in jni_invoke () from
    /localhost/packages/java/j2sdk1.4/jre/lib/i386/client/libjvm.so
    #16 0x404de94e in jni_NewObjectV () from
    /localhost/packages/java/j2sdk1.4/jre/lib/i386/client/libjvm.so
    #17 0x0804d27b in JNIEnv_::NewObject (this=0x819af2c, clazz=0x819b938,
    methodID=0x8293af8) at /localhost/packages/java/j2sdk1.4/include/jni.h:840
    #18 0x0804cb0a in AppletViewer::AppletViewer (this=0x81a5628,
    appletA=0x8193438) at AppletViewer.cc:227
    #19 0x0804e17b in Applet::move (this=0x8193438, drawX=18, drawY=25,
    drawWidth=376, drawHeight=77, scrollX=0, scrollY=0, dpi=86) at Applet.cc:329
    #20 0x0808b852 in PageAttrs::moveApplets (this=0x8192dd8, drawX=18,
    drawY=25, drawWidth=376, drawHeight=77, scrollX=0, scrollY=0, dpi=86) at
    Page.cc:321
    #21 0x080ae6ab in XPDFCore::moveApplets (this=0x81698d0) at Page.h:190
    #22 0x080ac87f in XPDFCore::displayPage (this=0x81698d0, pageA=2, zoomA=1,
    rotateA=0, scrollToTop=1, addToHist=1) at XPDFCore.cc:585
    #23 0x080acac3 in XPDFCore::gotoNextPage (this=0x81698d0, inc=1, top=1) at
    XPDFCore.cc:670
    #24 0x080b3901 in XPDFViewer::nextPageCbk (widget=0x8149ff0, ptr=0x81408e8,
    callData=0xbffff6d0) at XPDFViewer.cc:1229
    #25 0x401df59e in XtCallCallbackList () from /usr/X11R6/lib/libXt.so.6
    #26 0x400b5803 in ActivateCommon () from /usr/X11R6/lib/libXm.so.2
    #27 0x400b5689 in Activate () from /usr/X11R6/lib/libXm.so.2
    #28 0x4020c453 in _XtMatchAtom () from /usr/X11R6/lib/libXt.so.6
    #29 0x4020cd3e in _XtMatchAtom () from /usr/X11R6/lib/libXt.so.6
    #30 0x4020cdf4 in _XtTranslateEvent () from /usr/X11R6/lib/libXt.so.6
    #31 0x401ea462 in XtDispatchEventToWidget () from /usr/X11R6/lib/libXt.so.6
    #32 0x401ead7e in _XtOnGrabList () from /usr/X11R6/lib/libXt.so.6
    #33 0x401eafc8 in XtDispatchEvent () from /usr/X11R6/lib/libXt.so.6
    #34 0x401eb3d9 in XtAppMainLoop () from /usr/X11R6/lib/libXt.so.6
    #35 0x080ab04c in XPDFApp::run (this=0x81175b0) at XPDFApp.cc:299
    #36 0x080b8eef in main (argc=2, argv=0xbffffa84) at xpdf.cc:283
    Now here's the interesting thing: in the constructor of my Java class there's a call to pack() to initiate my Java GUI. When I remove that call everything works fine (but then I haven't got a GUI though). setVisible(true) in the Java code also gives that problem.
    Has C++ or the Xm library some troubles with the Java GUI? Or what the hell is going wrong?
    PS: On Solaris, the very same code works perfectly...

    I really need a solution.
    Is it possible it has something to do with threads?
    Do I have to do AttachCurrentThread or something like that? Is that necessary?
    Btw, I assigned 10 duke dollars to this topic.

  • Launching Java GUI from forms

    Hi,
    I have the following questions regarding launching a Java GUI from forms:
    1)Is it possible to launch a Java GUI on client(web) side from forms? (i.e. click on a button should launch a Java GUI instead of forms)
    2)Can this Java GUI share the same DB connection used by forms for any DB operations?
    Thanks
    -murali

    Thanks,
    I was able to bring up the Java GUI. Now, I want to access the database from this GUI. What approach should I have to take. [A sample SQLJ based GUI application is working fine on the console]
    -murali

  • Scrollable ILOM Java GUI on x86 platform?

    Hi Community,
    I have an x86 system running on Sun Blade 6000 chassis and an x6720 blade.
    When the system boots up, there are error messages displayed in the ILOM Java GUI. However, I could not see all the messages because the GUI is too small to display them.
    Is there a way for me to make the ILOM GUI scrollable or check the full boot messages? Thanks in advance.
    Regards,
    Ryan C
    Edited by: user1752985 on Dec 5, 2010 9:44 AM

    if you have alot of components in the ugly looking panes, it may be that the layout doesn't have enough space to give all the components their preferred size. If this is the case, try to call pack() on the frame. If this is not the case, are you giving the JButtons a border? or just painting the border once? (setBorder or paintBorder?) And if the JTextFields are shrinking into little slivers, it means they need more space. Not sure if any of this helps, but I hope it does!
    -JBoeing

  • How to use 2 webcam for java at the same time?

    hi there,
    I have a question to ask regarding webcam and java. Basically i want to know whether is it possible to have 2 web cam running in java at the same time? I have no problem when running one usb webcam since i m using "
    ml = new MediaLocator("vfw://0") ;
    what parameter must i use to specify when using 2 web cam
    many thanks
    sun

    Hi
    I am making a project in which i have to capture a image through webcam. How can I do it will you please guide me or if can provide me code. Many thanks for your support. My email id is [email protected]

  • Multiple Java Apps in same JVM

    Hi,
    I have created a shell script which calls my java application with heap size as below:
    /bin/java -Xms:3072M -Xmx:3072M ...
    I'm calling the shell script multiple times in the background to create multiple instances of my java application in the same box. I have set a limit of 5 for java applications at any point of time. But what I'm experiencing is that first few sets of java application finish very fast (almost 3 mins) but last few sets taking a lot of time (around 10 mins). The quantity of data processed by all java applications is same but why later sets of java application is taking longer?
    Can I do something here so that later sets of apps also completes in 3 mins? Can I refresh java heap before submitting another set of java applications? Java application is not mine but I have purchased from 3rd party. Please help!!!
    Thanks in advance.

    > why later sets of java application is taking longer?
    Probably because of CPU usage.  But could be memory.
    >Can I do something here so that later sets of apps also completes in 3 mins
    You tune the task, the complete task, to the box.  That means you must understand in detail what is taking time and then architect that to make the best use of the available CPUs and memory (and other resources as used by the task.)

  • Two separate videos in the same frame, and large format video.

    Hello. 
    I'm very new to this program.
    I've only done basic editing, such as this video where I took scenes from 3 different computer game replays and spliced them together.
    I own an eyefinity system (triple monitor) and record replays from games.
    The replays are half-size, but still 3008x600 pixels. Here's a sample of one reduced to fit in a 1920 pixel width.
    I want to get two of these in to one 16:10 or 16:9 frame.
    So two questions:
    1. Each time I try importing these avi's in to my Premier Project, they get cropped. The largest i've been able to make the sequence is 1280x1080. (sequence preset "DVCPROHD")
    I assume i'm missing something obvious...or there's a limitation of how many pixels wide Premier can deal with. If it's a width issue...I can resize the avi's first. Although I haven't seen a way to resize in Media Encoder without the upper and lower black bars...which I believe will create a problem. (see "Here's a sample" video above)
    2. I want to put two of these long rectangular replays in the same frame. Not overlapping, but one at the top of the frame...and the other at the bottom. Is this possible?
    The only thing I could find that came close was "multi-camera monitor". I was unable to figure that out. Is that what I have to learn about...in order to do this?
    Thanks very much.

    How do I choose the right sequence settings?
    Picture-in-picture (PIP) and split screen
    Multi-camera sequences are for real time switching between different sources.
    Multi‑camera sequences

  • Can I Open an HTMLHelp (*.CHM) File from Java GUI Application?

    I ussually use Delphi to develop my applications and I can open an HTMLHelp (*.CHM) file from my application. Can you show me the ways to do it from my Java GUI applications?
    Thanks for everyone.
    Budi Raharjo
    http://budiraharjo.blogspot.com

    http://www.google.com/search?q=java+chm
    Seems like there is some 3rd party software available for that.

  • Adobe Media Encoder for Premiere Pro CS4 stops working on the same frame every time...

    I currently have Adobe Premiere Pro CS4 and have never had these issues exporting before. My timeline is less than 3 minutes long, but it does deal with multiple big files. It rendered perfectly and it plays perfectly in the timeline. When I try to export it using Media Encoder, however, it freezes at the same frame every time (which is actually only a few seconds in!) and then crashes, so that I have to force quit. I have tried exporting it as many different codecs and the problem persists... same frame. I tried creating a new project entirely and whipping together a few titles and exporting that to see if it just won't export anything at all. The new project exported just fine, however, which I suppose is good news. But yeah, my work on that other project is very important to me and I reallllly want to export it. Please help!

    Hi Jim! Thank you for your reply. I think you are right -- and that it lies in the audio somehow!
    It turns out that if I choose to only export the video, and uncheck audio, it will export very well and smoothly. That's great news for me!
    However, now I am trying to work out how to get the audio exported without issues. I actually had the idea of just playing the audio in the timeline and recording it via Stereo Mix, but my Windows 7 driver has Stereo Mix disabled, so it's back to square one. Any ideas of what I can do about the corrupted audio not exporting, which works fine when played in the timeline?

Maybe you are looking for