http://javaprogrammers.webs.com/
I cannot get the error because it is no longer loading for me, this is simply a testing site that i've made not a real site.
I'm getting a error about a destination of some sort.
import java.awt.FlowLayout; import java.awt.event.*; import javax.swing.JButton; import javax.swing.JFrame; import javax.swing.JLabel; import javax.swing.JTextField; import java.io.*; public class MainClass extends JFrame { private JButton saveButton; private JTextField fileName; private JLabel fileName2; private JTextField text; private JLabel text2; private JTextField title; private JLabel title2; private JTextField number; private JLabel number2; public MainClass(){ super("MB Creator"); setLayout( new FlowLayout()); fileName2 = new JLabel("Filename: "); add(fileName2); fileName = new JTextField("",10); add(fileName); text2 = new JLabel(" Text: "); add(text2); text = new JTextField ("",10); add(text); number2 = new JLabel(" Number: "); add(number2); number = new JTextField("",10); add(number); title2 = new JLabel(" Title: "); add(title2); title = new JTextField("", 10); add(title); saveButton = new JButton(" Create "); add( saveButton ); saveButton.addActionListener(new ActionListener() { public void actionPerformed(ActionEvent event) { try { FileWriter outFile = new FileWriter(fileName.getText()+ ".vbs"); PrintWriter out = new PrintWriter(outFile); out.write("msgbox(\""+text.getText()+"\"),"+number.getText()+",(\""+title.getText()+"\")"); out.close(); } catch (IOException e){ e.printStackTrace(); } } } ) ; } ; { } { ; } }
The javaScript I'm Using
<HTML> <HEAD> <TITLE>MessageBox_Creator</TITLE> <META HTTP-EQUIV="PRAGMA" CONTENT="NO-CACHE"> </HEAD> <BODY> <applet name="MessageBox_Creator" width="170" height="300" archive="MessageBoxCreator.jar" code="MessageBoxCreator.class"> <param name="java_arguments" value="-Xmx1024m"> </applet> </BODY> </HTML>
Can someone tell me what I'm doing wrong?
the code has no errors runs perfect on a Desktop.