How do I open a user form using Java
Please Help!!
Thanks in Advance
Regards
Matt
Printable View
How do I open a user form using Java
Please Help!!
Thanks in Advance
Regards
Matt
What do you mean by open a user form? Is it a form that you have assembled using .awt or Swing? Just created an instance of the class in which the form is contained and set it's Visible property to true.
import javax.swing.*;
import java.awt.*;
class myform{
myform(){
JFrame jf = new JFrame("My Frame");
JButton jb1 = new JButton("Button 1 ");
JButton jb2 = new JButton("Button 2");
JButton jb3 = new JButton("Button 3");
JPanel p = new JPanel();
Container c = jf.getContentPane();
c.setLayout(new GridLayout(3,1)); // if you wanted to change the default (BorderLayout) manager.
p.add(jb1);
p.add(jb2);
p.add(jb3);
c.add("South",p);
}
}
class test{
public static void main (String[] args){
myform = new myform();
myform.setVisible(true);
}
I have a userfrom that has been created using the visual basic editor.
What I would like to do is to be able to show this form by calling it from a button click on my web page(html).
Is there a way to do this??
I really doubt that will work very well.
However, if the form is in the page, you might be able to redirect the browser to a VBScript: style URL to trigger it.