Insert windows gui  to java Frame?

Hello exist any method or object for insert 'windows gui program' in a java Frame ?
I need to launch an windows gui application from a java program .
Thanks

nturri wrote:
Hello exist any method or object for insert 'windows gui program' in a java Frame ?That doesn't make sense.     
I need to launch an windows gui application from a java program .[http://java.sun.com/javase/6/docs/api/java/lang/Runtime.html#exec(java.lang.String)]
ThanksYou're welcome.

Similar Messages

  • Display a C++ window in a java GUI

    Hi,
    I've got a java program and a c++ one.
    The Java program`s output is a GUI, using swing and awt componants.
    THe Cpp program is a 3D engine: OSG, Open Scene Graph., displaying a 3D model in the screne, with interaction : so that the user can move on the scene, thanks to the mouse or keyboard.
    Actually the Java is used as a command panel fot the 3Dengine.
    I would like to know if i can have the Cpp ouput window (the 3D ouput form the OSG cpp)
    in a Java componant > frame or anything : so that I would be able to keep all my software in only one main GUI.

    You can create a child native window in a java component. For this do as follows
    - extent java.awt.Canvas class with yours, override method addNotify and add some native method for CPP window initialization, g.e. createWindow()
    - in your addNotify call createWindow():
    public void addNotify() {
        super.addNotify();
        createWindow();
    }- add native method nativeWindowResize(int width, int height) to resize CPP Window;
    - implement java.awt.event.ComponentListener and in method componentResized call nativeWindowResized:
    public void componentResized(java.awt.event.ComponentEvent componentevent) {
        nativeWindowResize(getWidth(), getHeight());
    }- override setBounds(int x, int y, int w, int h):
    public void setBounds(int x, int y, int w, int h)
        super.setBounds(x, y, w, h);
        nativeWindowResize(getWidth(), getHeight());
    }What to do in JNI code (method createWindow and nativeWindowResize):
    - get HWND of java.awt.Canvas Object with AWT native interface;
    - create your CPP window as a child of Canvas' window;
    - in JNI method nativeWindowResize resize your CPP window.
    This is very simple task.

  • Attaching window system tray icon events to java frame

    I need to bring java frame to front on an event with the icon placed in the system tray. Like if I click the mouse on it.. the frame should come to front.
    Any body who can help, I will really appreciate.
    Thanks in advance
    Zeeshan

    I am very interested in implementing just such a thing with my Java application. I am in the starting phases of this project and ran across your post in my search for info.
    How much do you already have implemented? I.E., can you display the icon but are just having trouble catching the events for when the icon is clicked? Or do you not even have the ability to display the icon yet? I have found the Windows documentation on the MSDN site for the shell function Shell_NotifyIcon(), which is what we want to use but I have not begun any attempts to use it yet.
    If you (or anyone else) have any info or have had any success at all with this yet, I would be very interested in hearing how it works. I'll be happy to share any info I find, when/if I get that far.
    Thanks,
    j

  • Move Java Frame into Windows taskbar notification area (system tray)?

    Hi,
    I was wondering if anyone has written a service-like application in Java running (and appearing) in the Windows "taskbar notification area", instead of running in the convential Windows taskbar.
    I'm able to add an icon to the taskbar notification area (frequently errorneous called as the 'system tray') by using some native code that uses win32 Shell_NotifyIcon(.. , ..). However, I'm not able to 'couple' the window (i.e. the Java frame) to the new icon in the taskbar.
    My icon is shown in the area AND the frame is shown as an application in the taskbar... I would like to 'remove' my Java application from the taskbar and place it 'as an icon' in the taskbar notification area.
    Has anyone had experience with a similar problem?
    Many thanks!
    Jasper

    If all you need is to make the frame not visible in the taskbar as well than why don't you activate the hide() method? cature the minimize event and activate the frame.hide(); method. And in the system tray make the frame visible by frame.show();

  • I want to  implement the Window autoresize in java swing application

    Hai...
    i want implement the window autoresize functionality in my java application. Same time i want to minimize and maximize my won window. and my java application develop one more frame at time disply in single window so i want disply the thaminal view formate in all frame
    Thanx to Advance.
    ARjun...

    ????????

  • Unable to Print Purchase order automatically using SAP GUI for JAVA

    Hi SAP gurus,
    Some of the PC's in our company use windows and some LINUX. Therefore we use two types of SAP GUI. One for windows and the other one JAVA. PO approval was set to print automatically. In a windows setting, there are no problems with this setup. But in SAP GUI for JAVA, no print outs are produced and no error messages are displayed. I am using SAP GUI for JAVA version 7.10 ver 6. and I use Front end printing for linux access method G.
    please help,
    gungertz

    hi gungertz,
    You can use U type access method for printing SAP document using linux desktop.
    Please refer to my blog posting here (http://sapbasis.wordpress.com/2007/08/23/print-sap-documents-using-linux/)
    ardhian
    http://ardhian.kioslinux.com
    http://sapbasis.wordpress.com

  • ANN: SAP GUI for Java 7.10 available for download

    Hi all,
    SAP GUI for Java 7.10 is now available at <b>http://service.sap.com/sapgui-java</b>.
    In case you are not registered on service.sap.com, you can alternatively download it from ftp://ftp.sap.com/pub/sapgui/java/710.
    <b>New platforms:</b>
    - JSE 6: See System Requirements of platforms for details. Also, usage of JRE 1.4.2 is no longer supported.
    - Microsoft Windows Vista (Business and Ultimate editions)
    - Mac OS X 10.5 (once the test on the final build of "Leopard" has been successfully completed, see <a href="https://service.sap.com/sap/support/notes/959236">Note 959236</a> for latest news)
    - HP-UX 11.31
    <b>New features:</b>
    - <b>Input History: </b>Text previously entered in an entry field is available in a dropdown listbox when the same entry field is reaccessed.
    - The <b>installer</b> now can be launched directly from a write-protected directory and the installation process completes considerably faster.
    - The <b>Preference Dialog</b> has been redesigned.
    - <b>Dynpro Splitter:</b> The feature to display two subscreens divided by a horizontal or vertical splitter has been implemented.
    <a href="https://service.sap.com/sap/support/notes/959236">Note 959236</a> lists the supported platforms and will include latest news on support for Mac OS X 10.5 (Leopard).
    Best regards
    Rolf-Martin

    Hello Mac users,
    ANN: SAP GUI for Java 7.10 rev 1 available for download officially supports Leopard.
    Best regards
    Rolf-Martin

  • How to change the icon for 'windows group' in Java 1.6 [Windows XP] ?

    Hello,
    I was wondering if there is a possibility to change the icon for 'windows group' in Java 1.6...
    I'm using Windows XP SP2. Now the windows from my Java 1.6 application are grouped with the standard Sun icon [screen below] on the group.
    http://img382.imageshack.us/img382/8995/iconbl1.png
    I would like to change the icon for my own. Is there a way to do that ?
    Please help.

    Whichever icon I use for the main frame (I tried few), after grouping the main frame and other sub-frames the icon is changed to standard 'Java Sun' icon as you can see in the screenshot from my first post. The problem occurs only when frames are grouped, when the are separated in the task bar their titles and icons are ok...
    So how can I change the icon/title for the group only (for Java 1.6 in Windows XP) ?

  • Displaying a native Windows GUI program in a JFrame

    Hello,
    I am working on a troubleshooting program that will bring up a control panel applet along with my own JFrame containing instructions on what to do for a certain topic. In order to avoid one window overlapping another, I want to be able to control where both windows appear. One possibility I have thought of is to execute the control panel applet so it appears within the same JFrame or a different JFrame, and then I could control the position of that.
    I am using Runtime.exec to execute the control panel applet from the command prompt. Simply adding the Process that this function returns to the contentPane (Container for my JFrame) does not work because Process is in a different class hierarchy from Container.
    I was wondering if anyone knew either how to do what I just mentioned or how to control the position of a windows gui app that i execute from the command prompt. Any information that at least pointed me in the right direction would be very helpful. Thanks.

    Just to be clear...
    You have two seperate processes (two JVMs.)
    If so "class hierarchy" is meaningless because there is no interaction between the two JVMs that you do not explicitly provide.
    So you have several choices.
    First you can delve deep into the internals of windows and figure out how to determine where the various windows appear on the screen. Unless you are already an expert in the windows API this is going to take a lot of research.
    Second you can simply send use a communication medium (like sockets) to let each application tell the other app where it is. I believe the java api allows you some information on the screen position. If not then you will have to again delve into the windows internals.
    Three when both applications are running then only one application has a gui. The other application uses a communication medium (like a socket) to send relevant info to the other app. And the other app manages both GUIs.

  • Drag and drop of Windows icons inside Java......possible ?

    Hi all !
    does anybody know if it's possible to do drag and drop of windows icons (like folders) into Java Frames or other containers ?
    I'd like to write an application where the user can drag Windows folders inside a Frame/Container and collect Folder information (the path to the folder)
    Is it possible to do it ?
    Thanks a lot
    Francesco

    Hi,
    It is possible.
    You can drag platform independent objects like folders, icons etc. from the native platform to your java app.
    The Java-Object you need in this case is a
    DataFlavour like
    DataFlavor.stringFlavor // for text
    DataFlavor.javaFileListFlavor // for folders
    in the tutorial jacob has linked you find more about this.
    Olek

  • Urgent!Java Frame Cutting according to non-rectangular image (Transparency

    Urgent-Java Frame Cutting according to non-rectangular image (CrossPlatform - Transparency)
    hi, i want to make the frame transparent in order to make a skin like Windows Media Player . skin is non-rectangular how should i make the frame transparent i am using the JWindow as the container. Plz guide me any idea. as an example i have a JWindow i put a non-rectangular image on it via Jlabel . now i want to make the edges of JWindow outside the boundery of the image transparent ... so that my frame seems like a non-rectanguar image . How i do that? But i need a cross platform kinna thing in java especially for windows/mac/linux
    PaulFMendler :: thanks for ur help i looked at the code but it seems to be windows dependent. i need cross-platform way of producing abt effects. please contact me even on my email >> [email protected]
    Waiting ......

    Check out the link shown below:
    http://forum.java.sun.com/thread.jsp?forum=4&thread=391403
    The posted code has slight problem when moving the JWindow around but you can get a pretty good idea on what has to be done.
    ;o)
    V.V.

  • GUI in Java

    I ever learn Java before JDK 1.4, but to make application GUI in Java is so complicated. So i never learn Java to make application GUI again.
    Now There is JDK 1.6, is it more easy to make GUI in Java now ? I hope i can make GUI in Java likes VB6 or Visual Studio 2005, just click n click, n just think the code. Very easy not so complicated.
    Do u have any comment or advice to me or i just so stupid ?
    I am sorry if myenglish is bad, thx a lot.

    I do little gui stuff as i am still learning basics but the intelli sense of the IDE's helps me a lot in learning about what can be done.
    A question ?----> many posts have stated their preference for intelliJ IDEA, $99 for student version. And supposedly a far better GUI builder. Would most java apps , well a whole hell of a lot use morelikly a browser interface anyway would they not ?
    Intelli sense is like having the API opened up in front of you at all times. Still it is a touch confusing, like i was using strVar.valueOf("123"); and Strvar = StrValue.parseDouble("123"); and didnt get the idea of the two methods.
    Also with IO streams. Lots of methods seemed to do pretty much the same result.
    And when you get into GUI event handling I think the line is a bit blurred between object programming and procedural programming. But back on the GUI and IDE , im using Netbeans BlueJ, Eclipse, and BlueJ (BlueJ is the only editor we are supported to use) but i never understood that or i mean agreed with that so i pretty much never used it(BlueJ) after first couple of the course lectures. mainly because i downloaded Netbeans along with the JDK. as id just finished a semester of VB.Net and naturallly "'Wanted it All'"
    I will have a look at JBuilder if its free. I hit apon a bug i thought of the NetBeans form builder, how it will not color some properties of the form as it maybe should but then eclipse did the same thing.
    Also i had to get help with a combobox event handler as it fires twice, well three times as it it fired when the form or window activated/showed in the first place .
    Message was edited by:
    rigidig

  • BW Bex Browser in SAP GUI for JAVA 6.40 R2.2 for Linux Desktops

    Hello,
    I am using SAP GUI for JAVA v 6.40 R2.2 on a Linux desktop. But during the installation it doesn't ask for BW Bex installation option (as in SAP GUI for Windows). Is it the case that BW Bex is not supported in Linux Environment? If it is then kindly suggest some way to install the same.
    Regards,
    Yashodhan

    Hi Yashodhan,
    the Business Explorer does not exist in the Linux environment.
    Best regards,
    Christian

  • How to make a all new gui in java

    I am fed up of using metal motif and windows look and feel gui in java...........how can i make a more fancy gui.......
    the one like ym or gtalk.......

    See The Java&#8482; tutorials: [The Synth Look and Feel|http://java.sun.com/docs/books/tutorial/uiswing/lookandfeel/synth.html]
    db

  • How do I insert an image into a Frame?

    Hi!
    I need to insert an image into a Frame(java.awt.Frame) and I can't use swing, I need to use only awt.
    Witch class do I use to insert an image?
    Using swing I used a JLabel and the setIcon method. But now I can use only AWT.

    Out of curiosity, why are you limiting yourself to AWT? Why not use Swing / JFrame, etc..
    I think this is a situation where answering your direct question is the wrong way to go. Perhaps its more of a design question that needs to be addressed.
    Message was edited by:
    petes1234

Maybe you are looking for

  • Using PS4 as external editor

    Hey guys, My question is concerning the presets in preferences for an external editor. I use PS4 and am wondering what is the deference between the tiff and psd selections. I have played around with both and notice the file size changes when I bring

  • ??~~~~WLSE Supported APs Firmware Vs IOS Version~~~~??

    Hi, Dear all I'm confused in the WLSE version and the managed AP IOS version. The supported device message could be found at the link below: http://www.cisco.com/en/US/products/sw/cscowork/ps3915/products_device_support_tables_list.html My question i

  • Ideas and Suggestions for Working with Low Res Video Files

    Hi, A client has asked me to take all of her low res videos she shot with her iPhone and put them on a DVD. I've made her aware that the end result is not going to be a Hollywood production.  I even did a test for her to show the difference between a

  • Unable to download programs   OS 10.6.8

    Hello. In seeking to download any application or program I receive the following message: /Users/Jo/Downloads/xUI1qKZH.part could not be saved, because you cannot change the contents of that folder. Change the folder properties and try again, or try

  • After software update usb mouse no longer works.

    After software update Microsoft usb mouse no longer works. System Profiler "sees" usb mouse. I took my macbook to the Genius Bar at Apple and they were not able to help. Pretty lame....