|
-
Jul 6th, 2001, 06:50 AM
#1
Thread Starter
Hyperactive Member
User Forms?? Please Help!!
How do I open a user form using Java
Please Help!!
Thanks in Advance
Regards
Matt
-
Jul 6th, 2001, 01:26 PM
#2
Dazed Member
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);
}
-
Jul 10th, 2001, 02:58 AM
#3
Thread Starter
Hyperactive Member
Well
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??
-
Jul 10th, 2001, 03:16 AM
#4
Monday Morning Lunatic
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.
I refuse to tie my hands behind my back and hear somebody say "Bend Over, Boy, Because You Have It Coming To You".
-- Linus Torvalds
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|