Okay,
I'll just post my code and see what you guys can make of it.
I'm getting the error that the 'main' class could not be found,
but as you can see I have it in the code.
Thanks for the help!
package macey;
/**
* @author Mike
*/
import java.awt.*;
import java.awt.event.*;
import javax.swing.*;
public class convDev {
public static void conv() {
// Content Pane
JPanel content = new JPanel();
content.setLayout(new GridBagLayout());
GridBagConstraints c = new GridBagConstraints();
// Menubar
JMenuBar menuBar = new JMenuBar();
JMenu fileMenu = new JMenu("File");
JMenuItem fileQuit = new JMenuItem("Quit");
fileMenu.add(fileQuit);
menuBar.add(fileMenu);
JMenu helpMenu = new JMenu("Help");
JMenuItem helpAbout = new JMenuItem("About");
helpMenu.add(helpAbout);
helpMenu.add(new JSeparator());
JMenuItem helpTutorial = new JMenuItem("Tutorial");
helpMenu.add(helpTutorial);
menuBar.add(helpMenu);
// Window
JFrame convWin = new JFrame("Converter");
convWin.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
convWin.setContentPane(content);
convWin.setJMenuBar(menuBar);
convWin.pack();
convWin.setVisible(true);
}
public static void main(String[] args) {
// Showing this application's GUI.
javax.swing.SwingUtilities.invokeLater(new Runnable() {
public void run() {
conv();
}
});
}
}