Loading oracle form over JFrame
0 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   Palaniyappan_Kuamrappan
Posted On:   Thursday, September 20, 2001 08:16 AM

HI, I am facing one problem. If I float a new process for oracle forms above JFrame window then it shows the oracle form and immediately the oracle forms process is terminated. If I hide or minimize the JFrame window then it shows the oracle forms. But I want to activate both the windows simultaneously. But I can able to activate Netscape or other applications above JFrame window. I want to run the oracle forms application above JFrame. The platform is HP-UX JDK version 1.1.8 I enclosed the source code here.    More>>

			
HI,

I am facing one problem.

If I float a new process for

oracle forms above JFrame window

then it shows the oracle form

and immediately the oracle forms

process is terminated. If I

hide or minimize the JFrame window

then it shows the oracle forms.

But I want to activate

both the windows simultaneously.

But I can able to activate

Netscape or other applications

above JFrame window.

I want to run the oracle

forms application above JFrame.



The platform is HP-UX

JDK version 1.1.8


I enclosed the source code here.


import javax.swing.*;

import java.awt.*;

import java.awt.event.*;


public class MyFrame extends JFrame
{

Button first=new Button("First");
Process p=null;
MyFrame frame;
MyFrame()
{
this.getContentPane().setLayout(new FlowLayout());
frame = this;

first.addActionListener(new ActionListener()
{
public void actionPerformed(ActionEvent ae)
{
Runtime runTime = Runtime.getRuntime();

try
{

p=runTime.exec("f45runm/myoraclefrm.frmx userid=palani/palani");
System.out.println("Notepad is opened exitValue"+p.exitValue());
}
catch(Exception e)
{
System.out.println("The exception is "+e.toString());
}
}
});
this.getContentPane().add(first);

}






public static void main(String arg[])
{
MyFrame t= new MyFrame();
t.setSize(400,400);
t.show();

}

}


In the above code If I click the

"First button(JButton)" then it

floats the process for oracle forms

and it(oracle forms) is terminated

immediately. If I hide the JFrame window

then it shows the oracle forms.

But I want to activate both the windows.

I need the solution urgently.

If u have a solution for this one, then please write

immediately.



   <<Less
About | Sitemap | Contact