Hey everyone,
I'm using the NetBeans WYSIWYG, the part where you drag and drop
to create the windows and buttons ect.

What I am trying to do is open a tutorial for my program from
a menu item in the 'Help' menu.

My problem is HOW to open a window from the 'Tutorial' item in the
'Help' menu.

Even though I am using the WYSIWYG, I have no problem actually coding it,
so coding answers are great too!

Thanks everyone,
-WolfShield

Do you mean open a new window of your application?

Hmm, I think you can use this:

Form2 frm = new Form2();
frm.setVisible(true);

Sorry,
I should have clarified.

I mean that my user clicks on the 'Help' menu, then on the 'Tutorial' menu
item and it opens up a different window with a tutorial in it.

Thanks for the reply!
-WolfShield

Do you want a window within your java program, a web-page link, or a text file to open in a generic text editor. The window in java would most likely load text from an external file for two reasons: To make it easy to update the tutorial, and/or to reduce the active size of your program less resource intensive overall making it faster.

Also can you post the code for your program so I can see what you are working with?

What do you mean with the tutorial? a form in your application or another file like doc, pdf, ext?

Okay,
I want to open up another java window, the same kind as the main window.

A window that I can place labels, buttons, textfields, ect...

The project I am working on is a converter and calculator program.

I will post the code here, but I am still working on it so not
everything in it works. (If it did, I wouldn't be here, would I? Lol.)

package converter;

/**
 *
 * @author WolfShield
 */
public class UltimateConverter extends javax.swing.JFrame {
    String getInput="", num1s="", num2s="", operator="", answers="";
    double calcInput=0.0, num1=0.0, num2=0.0, answer=0.0;
    boolean posorneg=true;
    /** Creates new form UltimateConverter */
    public UltimateConverter() {
        initComponents();
    }

    /** This method is called from within the constructor to
     * initialize the form.
     * WARNING: Do NOT modify this code. The content of this method is
     * always regenerated by the Form Editor.
     */
    @SuppressWarnings("unchecked")
    // <editor-fold defaultstate="collapsed" desc="Generated Code">
    private void initComponents() {

        jScrollBar1 = new javax.swing.JScrollBar();
        Label1 = new javax.swing.JLabel();
        Label2 = new javax.swing.JLabel();
        Label3 = new javax.swing.JLabel();
        TabbedPane = new javax.swing.JTabbedPane();
        calculatorPanel = new javax.swing.JPanel();
        calculatorTextField = new javax.swing.JTextField();
        oneButton = new javax.swing.JButton();
        twoButton = new javax.swing.JButton();
        threeButton = new javax.swing.JButton();
        fourButton = new javax.swing.JButton();
        fiveButton = new javax.swing.JButton();
        sixButton = new javax.swing.JButton();
        sevenButton = new javax.swing.JButton();
        eightButton = new javax.swing.JButton();
        nineButton = new javax.swing.JButton();
        zeroButton = new javax.swing.JButton();
        decimalButton = new javax.swing.JButton();
        multiplicationButton = new javax.swing.JButton();
        divisionButton = new javax.swing.JButton();
        subtractionButton = new javax.swing.JButton();
        additionButton = new javax.swing.JButton();
        equalsButton = new javax.swing.JButton();
        modulusButton = new javax.swing.JButton();
        piButton = new javax.swing.JButton();
        squarrootButton = new javax.swing.JButton();
        backspaceButton = new javax.swing.JButton();
        ceButton = new javax.swing.JButton();
        cButton = new javax.swing.JButton();
        posornegButton = new javax.swing.JButton();
        roundButton = new javax.swing.JButton();
        exponentButton = new javax.swing.JButton();
        currencyPanel = new javax.swing.JPanel();
        currencyfromLabel = new javax.swing.JLabel();
        currencytoLabel = new javax.swing.JLabel();
        currencyfromComboBox = new javax.swing.JComboBox();
        currencytoComboBox = new javax.swing.JComboBox();
        jLabel1 = new javax.swing.JLabel();
        amountTextField = new javax.swing.JTextField();
        convertButton = new javax.swing.JButton();
        currencyfromnumberLabel = new javax.swing.JLabel();
        currencyfromtypeLabel = new javax.swing.JLabel();
        isequivalenttoLabel = new javax.swing.JLabel();
        currencytonumberLabel = new javax.swing.JLabel();
        currencytotypeLabel = new javax.swing.JLabel();
        lengthPanel = new javax.swing.JPanel();
        weightPanel = new javax.swing.JPanel();
        MenuBar = new javax.swing.JMenuBar();
        fileMenu = new javax.swing.JMenu();
        aboutMenu = new javax.swing.JMenu();
        aboutTUCMenuItem = new javax.swing.JMenuItem();
        calculatorMenu = new javax.swing.JMenu();
        roundtoMenuItem = new javax.swing.JMenuItem();
        pilengthMenuItem = new javax.swing.JMenuItem();
        currencyMenu = new javax.swing.JMenu();
        lengthMenu = new javax.swing.JMenu();
        weightMenu = new javax.swing.JMenu();
        helpMenu = new javax.swing.JMenu();
        jSeparator1 = new javax.swing.JPopupMenu.Separator();
        texttutorialMenuItem = new javax.swing.JMenuItem();
        videotutorialMenuItem = new javax.swing.JMenuItem();

        setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);
        setTitle("Ultimate Converter - v0.1");

        Label1.setText("The Ultimate Converter!");

        Label2.setText("The Ultimate Converter was designed so that you can do all the calculations");

        Label3.setText("you need to do, all in one place!");

        oneButton.setText("1");
        oneButton.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                oneButtonActionPerformed(evt);
            }
        });

        twoButton.setText("2");
        twoButton.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                twoButtonActionPerformed(evt);
            }
        });

        threeButton.setText("3");
        threeButton.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                threeButtonActionPerformed(evt);
            }
        });

        fourButton.setText("4");
        fourButton.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                fourButtonActionPerformed(evt);
            }
        });

        fiveButton.setText("5");
        fiveButton.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                fiveButtonActionPerformed(evt);
            }
        });

        sixButton.setText("6");
        sixButton.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                sixButtonActionPerformed(evt);
            }
        });

        sevenButton.setText("7");
        sevenButton.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                sevenButtonActionPerformed(evt);
            }
        });

        eightButton.setText("8");
        eightButton.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                eightButtonActionPerformed(evt);
            }
        });

        nineButton.setText("9");
        nineButton.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                nineButtonActionPerformed(evt);
            }
        });

        zeroButton.setText("0");
        zeroButton.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                zeroButtonActionPerformed(evt);
            }
        });

        decimalButton.setText(".");
        decimalButton.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                decimalButtonActionPerformed(evt);
            }
        });

        multiplicationButton.setText("*");
        multiplicationButton.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                multiplicationButtonActionPerformed(evt);
            }
        });

        divisionButton.setText("/");
        divisionButton.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                divisionButtonActionPerformed(evt);
            }
        });

        subtractionButton.setText("-");
        subtractionButton.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                subtractionButtonActionPerformed(evt);
            }
        });

        additionButton.setText("+");
        additionButton.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                additionButtonActionPerformed(evt);
            }
        });

        equalsButton.setText("=");
        equalsButton.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                equalsButtonActionPerformed(evt);
            }
        });

        modulusButton.setText("%");
        modulusButton.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                modulusButtonActionPerformed(evt);
            }
        });

        piButton.setText("π");
        piButton.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                piButtonActionPerformed(evt);
            }
        });

        squarrootButton.setText("√");
        squarrootButton.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                squarrootButtonActionPerformed(evt);
            }
        });

        backspaceButton.setText("Backspace");
        backspaceButton.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                backspaceButtonActionPerformed(evt);
            }
        });

        ceButton.setText("CE");
        ceButton.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                ceButtonActionPerformed(evt);
            }
        });

        cButton.setText("C");
        cButton.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                cButtonActionPerformed(evt);
            }
        });

        posornegButton.setText("+/-");
        posornegButton.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                posornegButtonActionPerformed(evt);
            }
        });

        roundButton.setText("Round");
        roundButton.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                roundButtonActionPerformed(evt);
            }
        });

        exponentButton.setText("^");
        exponentButton.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                exponentButtonActionPerformed(evt);
            }
        });

        javax.swing.GroupLayout calculatorPanelLayout = new javax.swing.GroupLayout(calculatorPanel);
        calculatorPanel.setLayout(calculatorPanelLayout);
        calculatorPanelLayout.setHorizontalGroup(
            calculatorPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, calculatorPanelLayout.createSequentialGroup()
                .addContainerGap()
                .addGroup(calculatorPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                    .addComponent(calculatorTextField, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, 361, Short.MAX_VALUE)
                    .addGroup(javax.swing.GroupLayout.Alignment.LEADING, calculatorPanelLayout.createSequentialGroup()
                        .addGroup(calculatorPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false)
                            .addComponent(zeroButton, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                            .addGroup(javax.swing.GroupLayout.Alignment.LEADING, calculatorPanelLayout.createSequentialGroup()
                                .addComponent(sevenButton)
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                .addComponent(eightButton)))
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addGroup(calculatorPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                            .addGroup(calculatorPanelLayout.createSequentialGroup()
                                .addComponent(decimalButton)
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                .addComponent(additionButton, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
                            .addGroup(calculatorPanelLayout.createSequentialGroup()
                                .addComponent(nineButton)
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                .addComponent(subtractionButton)))
                        .addGap(18, 18, 18)
                        .addGroup(calculatorPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addGroup(calculatorPanelLayout.createSequentialGroup()
                                .addComponent(modulusButton)
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                                .addComponent(cButton)
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                .addComponent(exponentButton, javax.swing.GroupLayout.DEFAULT_SIZE, 63, Short.MAX_VALUE))
                            .addGroup(calculatorPanelLayout.createSequentialGroup()
                                .addComponent(equalsButton)
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                                .addComponent(posornegButton, javax.swing.GroupLayout.DEFAULT_SIZE, 114, Short.MAX_VALUE))))
                    .addGroup(javax.swing.GroupLayout.Alignment.LEADING, calculatorPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false)
                        .addGroup(javax.swing.GroupLayout.Alignment.LEADING, calculatorPanelLayout.createSequentialGroup()
                            .addComponent(oneButton)
                            .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                            .addComponent(twoButton)
                            .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                            .addComponent(threeButton)
                            .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                            .addComponent(multiplicationButton)
                            .addGap(18, 18, 18)
                            .addComponent(squarrootButton)
                            .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                            .addComponent(backspaceButton, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
                        .addGroup(javax.swing.GroupLayout.Alignment.LEADING, calculatorPanelLayout.createSequentialGroup()
                            .addComponent(fourButton)
                            .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                            .addComponent(fiveButton)
                            .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                            .addComponent(sixButton)
                            .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                            .addComponent(divisionButton)
                            .addGap(18, 18, 18)
                            .addComponent(piButton)
                            .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                            .addComponent(ceButton)
                            .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                            .addComponent(roundButton))))
                .addGap(48, 48, 48))
        );

        calculatorPanelLayout.linkSize(javax.swing.SwingConstants.HORIZONTAL, new java.awt.Component[] {cButton, ceButton, equalsButton, modulusButton, piButton, squarrootButton});

        calculatorPanelLayout.linkSize(javax.swing.SwingConstants.HORIZONTAL, new java.awt.Component[] {divisionButton, multiplicationButton, subtractionButton});

        calculatorPanelLayout.setVerticalGroup(
            calculatorPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(calculatorPanelLayout.createSequentialGroup()
                .addContainerGap()
                .addComponent(calculatorTextField, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addGroup(calculatorPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(oneButton)
                    .addComponent(twoButton)
                    .addComponent(threeButton)
                    .addComponent(multiplicationButton)
                    .addComponent(squarrootButton)
                    .addComponent(backspaceButton))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(calculatorPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(fourButton)
                    .addComponent(fiveButton)
                    .addComponent(sixButton)
                    .addComponent(divisionButton)
                    .addComponent(piButton)
                    .addComponent(ceButton)
                    .addComponent(roundButton))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(calculatorPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(sevenButton)
                    .addComponent(eightButton)
                    .addComponent(nineButton)
                    .addComponent(subtractionButton)
                    .addComponent(modulusButton)
                    .addComponent(cButton)
                    .addComponent(exponentButton))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(calculatorPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(zeroButton)
                    .addComponent(decimalButton)
                    .addComponent(additionButton)
                    .addComponent(equalsButton)
                    .addComponent(posornegButton))
                .addContainerGap(27, Short.MAX_VALUE))
        );

        calculatorPanelLayout.linkSize(javax.swing.SwingConstants.VERTICAL, new java.awt.Component[] {cButton, ceButton, equalsButton, modulusButton, piButton, posornegButton, squarrootButton});

        calculatorPanelLayout.linkSize(javax.swing.SwingConstants.VERTICAL, new java.awt.Component[] {additionButton, divisionButton, multiplicationButton, subtractionButton});

        TabbedPane.addTab("Calculator", calculatorPanel);

        currencyfromLabel.setText("Currency From:");

        currencytoLabel.setText("Currency To:");

        currencyfromComboBox.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "Item 1", "Item 2", "Item 3", "Item 4" }));

        currencytoComboBox.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "Item 1", "Item 2", "Item 3", "Item 4" }));

        jLabel1.setText("Amount:");

        amountTextField.setText("eg. 45.00");
        amountTextField.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                amountTextFieldMouseClicked(evt);
            }
        });

        convertButton.setText("Convert");

        currencyfromnumberLabel.setText("45.00");

        currencyfromtypeLabel.setText("USD");

        isequivalenttoLabel.setText("is equivalent to");

        currencytonumberLabel.setText("34.00");

        currencytotypeLabel.setText("Pounds");

        javax.swing.GroupLayout currencyPanelLayout = new javax.swing.GroupLayout(currencyPanel);
        currencyPanel.setLayout(currencyPanelLayout);
        currencyPanelLayout.setHorizontalGroup(
            currencyPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(currencyPanelLayout.createSequentialGroup()
                .addGroup(currencyPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(currencyPanelLayout.createSequentialGroup()
                        .addGap(50, 50, 50)
                        .addComponent(convertButton))
                    .addGroup(currencyPanelLayout.createSequentialGroup()
                        .addGroup(currencyPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addGroup(currencyPanelLayout.createSequentialGroup()
                                .addContainerGap()
                                .addGroup(currencyPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                    .addComponent(currencyfromLabel)
                                    .addComponent(currencytoLabel))
                                .addGap(18, 18, 18)
                                .addGroup(currencyPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                    .addComponent(currencytoComboBox, 0, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                                    .addComponent(currencyfromComboBox, 0, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                                    .addComponent(amountTextField, javax.swing.GroupLayout.DEFAULT_SIZE, 56, Short.MAX_VALUE)))
                            .addGroup(currencyPanelLayout.createSequentialGroup()
                                .addGap(10, 10, 10)
                                .addComponent(jLabel1)
                                .addGap(186, 186, 186)))
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addGroup(currencyPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addGroup(currencyPanelLayout.createSequentialGroup()
                                .addGroup(currencyPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                    .addComponent(currencytonumberLabel)
                                    .addComponent(currencyfromnumberLabel))
                                .addGap(18, 18, 18)
                                .addGroup(currencyPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                    .addComponent(currencyfromtypeLabel)
                                    .addComponent(currencytotypeLabel)))
                            .addComponent(isequivalenttoLabel))))
                .addContainerGap())
        );

        currencyPanelLayout.linkSize(javax.swing.SwingConstants.HORIZONTAL, new java.awt.Component[] {amountTextField, currencyfromComboBox, currencytoComboBox});

        currencyPanelLayout.setVerticalGroup(
            currencyPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(currencyPanelLayout.createSequentialGroup()
                .addContainerGap()
                .addGroup(currencyPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(currencyfromLabel)
                    .addComponent(currencyfromComboBox, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(currencyfromnumberLabel)
                    .addComponent(currencyfromtypeLabel))
                .addGap(18, 18, 18)
                .addGroup(currencyPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                    .addGroup(currencyPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                        .addComponent(currencytoLabel)
                        .addComponent(currencytoComboBox, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                    .addComponent(isequivalenttoLabel))
                .addGap(18, 18, 18)
                .addGroup(currencyPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabel1)
                    .addComponent(amountTextField, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(currencytonumberLabel)
                    .addComponent(currencytotypeLabel))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 38, Short.MAX_VALUE)
                .addComponent(convertButton)
                .addContainerGap())
        );

        TabbedPane.addTab("Currency", currencyPanel);

        javax.swing.GroupLayout lengthPanelLayout = new javax.swing.GroupLayout(lengthPanel);
        lengthPanel.setLayout(lengthPanelLayout);
        lengthPanelLayout.setHorizontalGroup(
            lengthPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGap(0, 419, Short.MAX_VALUE)
        );
        lengthPanelLayout.setVerticalGroup(
            lengthPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGap(0, 179, Short.MAX_VALUE)
        );

        TabbedPane.addTab("Length", lengthPanel);

        javax.swing.GroupLayout weightPanelLayout = new javax.swing.GroupLayout(weightPanel);
        weightPanel.setLayout(weightPanelLayout);
        weightPanelLayout.setHorizontalGroup(
            weightPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGap(0, 419, Short.MAX_VALUE)
        );
        weightPanelLayout.setVerticalGroup(
            weightPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGap(0, 179, Short.MAX_VALUE)
        );

        TabbedPane.addTab("Weight", weightPanel);

        fileMenu.setText("File");
        MenuBar.add(fileMenu);

        aboutMenu.setText("About");

        aboutTUCMenuItem.setText("About The Ultimate Converter");
        aboutMenu.add(aboutTUCMenuItem);

        MenuBar.add(aboutMenu);

        calculatorMenu.setText("Calculator");

        roundtoMenuItem.setText("Round To");
        roundtoMenuItem.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                roundtoMenuItemActionPerformed(evt);
            }
        });
        calculatorMenu.add(roundtoMenuItem);

        pilengthMenuItem.setText("Pi Length");
        calculatorMenu.add(pilengthMenuItem);

        MenuBar.add(calculatorMenu);

        currencyMenu.setText("Currency");
        MenuBar.add(currencyMenu);

        lengthMenu.setText("Length");
        MenuBar.add(lengthMenu);

        weightMenu.setText("Weight");
        MenuBar.add(weightMenu);

        helpMenu.setText("Help");
        helpMenu.add(jSeparator1);

        texttutorialMenuItem.setText("Text Tutorial");
        texttutorialMenuItem.addContainerListener(new java.awt.event.ContainerAdapter() {
            public void componentAdded(java.awt.event.ContainerEvent evt) {
                texttutorialMenuItemComponentAdded(evt);
            }
        });
        helpMenu.add(texttutorialMenuItem);

        videotutorialMenuItem.setText("Video Tutorial");
        helpMenu.add(videotutorialMenuItem);

        MenuBar.add(helpMenu);

        setJMenuBar(MenuBar);

        javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
        getContentPane().setLayout(layout);
        layout.setHorizontalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(layout.createSequentialGroup()
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(layout.createSequentialGroup()
                        .addContainerGap()
                        .addComponent(Label2))
                    .addGroup(layout.createSequentialGroup()
                        .addContainerGap()
                        .addComponent(Label3))
                    .addGroup(layout.createSequentialGroup()
                        .addContainerGap()
                        .addComponent(TabbedPane))
                    .addGroup(layout.createSequentialGroup()
                        .addGap(140, 140, 140)
                        .addComponent(Label1)))
                .addContainerGap())
        );
        layout.setVerticalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(layout.createSequentialGroup()
                .addComponent(Label1)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(Label2)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(Label3)
                .addGap(18, 18, 18)
                .addComponent(TabbedPane, javax.swing.GroupLayout.DEFAULT_SIZE, 207, Short.MAX_VALUE)
                .addContainerGap())
        );

        pack();
    }// </editor-fold>

    private void nineButtonActionPerformed(java.awt.event.ActionEvent evt) {                                           
        getInput = calculatorTextField.getText();
        if (getInput.equals("+") || getInput.equals("-") || getInput.equals("*") || getInput.equals("/") || getInput.equals("%") || getInput.equals("π") || getInput.equals("√") || getInput.equals("^") || getInput.equals(answers)) {
            calculatorTextField.setText("9");
        } else {
            calculatorTextField.setText(getInput + "9");
        }
    }                                          

    private void oneButtonActionPerformed(java.awt.event.ActionEvent evt) {                                          
        getInput=calculatorTextField.getText();
        if (getInput.equals("+") || getInput.equals("-") || getInput.equals("*") || getInput.equals("/") || getInput.equals("%") || getInput.equals("π") || getInput.equals("√") || getInput.equals("^") || getInput.equals(answers)) {
            calculatorTextField.setText("1");
        } else {
            calculatorTextField.setText(getInput + "1");
        }
    }                                         

    private void twoButtonActionPerformed(java.awt.event.ActionEvent evt) {                                          
        getInput = calculatorTextField.getText();
        if (getInput.equals("+") || getInput.equals("-") || getInput.equals("*") || getInput.equals("/") || getInput.equals("%") || getInput.equals("π") || getInput.equals("√") || getInput.equals("^") || getInput.equals(answers)) {
            calculatorTextField.setText("2");
        } else {
            calculatorTextField.setText(getInput + "2");
        }
    }                                         

    private void threeButtonActionPerformed(java.awt.event.ActionEvent evt) {                                            
        getInput = calculatorTextField.getText();
        if (getInput.equals("+") || getInput.equals("-") || getInput.equals("*") || getInput.equals("/") || getInput.equals("%") || getInput.equals("π") || getInput.equals("√") || getInput.equals("^") || getInput.equals(answers)) {
            calculatorTextField.setText("3");
        } else {
            calculatorTextField.setText(getInput + "3");
        }
    }                                           

    private void fourButtonActionPerformed(java.awt.event.ActionEvent evt) {                                           
        getInput = calculatorTextField.getText();
        if (getInput.equals("+") || getInput.equals("-") || getInput.equals("*") || getInput.equals("/") || getInput.equals("%") || getInput.equals("π") || getInput.equals("√") || getInput.equals("^") || getInput.equals(answers)) {
            calculatorTextField.setText("4");
        } else {
            calculatorTextField.setText(getInput + "4");
        }
    }                                          

    private void fiveButtonActionPerformed(java.awt.event.ActionEvent evt) {                                           
        getInput = calculatorTextField.getText();
        if (getInput.equals("+") || getInput.equals("-") || getInput.equals("*") || getInput.equals("/") || getInput.equals("%") || getInput.equals("π") || getInput.equals("√") || getInput.equals("^") || getInput.equals(answers)) {
            calculatorTextField.setText("5");
        } else {
            calculatorTextField.setText(getInput + "5");
        }
    }                                          

    private void sixButtonActionPerformed(java.awt.event.ActionEvent evt) {                                          
        getInput = calculatorTextField.getText();
        if (getInput.equals("+") || getInput.equals("-") || getInput.equals("*") || getInput.equals("/") || getInput.equals("%") || getInput.equals("π") || getInput.equals("√") || getInput.equals("^") || getInput.equals(answers)) {
            calculatorTextField.setText("6");
        } else {
            calculatorTextField.setText(getInput + "6");
        }
    }                                         

    private void sevenButtonActionPerformed(java.awt.event.ActionEvent evt) {                                            
        getInput = calculatorTextField.getText();
        if (getInput.equals("+") || getInput.equals("-") || getInput.equals("*") || getInput.equals("/") || getInput.equals("%") || getInput.equals("π") || getInput.equals("√") || getInput.equals("^") || getInput.equals(answers)) {
            calculatorTextField.setText("7");
        } else {
            calculatorTextField.setText(getInput + "7");
        }
    }                                           

    private void eightButtonActionPerformed(java.awt.event.ActionEvent evt) {                                            
        getInput = calculatorTextField.getText();
        if (getInput.equals("+") || getInput.equals("-") || getInput.equals("*") || getInput.equals("/") || getInput.equals("%") || getInput.equals("π") || getInput.equals("√") || getInput.equals("^") || getInput.equals(answers)) {
            calculatorTextField.setText("8");
        } else {
            calculatorTextField.setText(getInput + "8");
        }
    }                                           

    private void zeroButtonActionPerformed(java.awt.event.ActionEvent evt) {                                           
        getInput = calculatorTextField.getText();
        if (getInput.equals("+") || getInput.equals("-") || getInput.equals("*") || getInput.equals("/") || getInput.equals("%") || getInput.equals("π") || getInput.equals("√") || getInput.equals("^") || getInput.equals(answers)) {
            calculatorTextField.setText("0");
        } else {
            calculatorTextField.setText(getInput + "0");
        }
    }                                          

    private void decimalButtonActionPerformed(java.awt.event.ActionEvent evt) {                                              
        getInput = calculatorTextField.getText();
        if (getInput.equals("+") || getInput.equals("-") || getInput.equals("*") || getInput.equals("/") || getInput.equals("%") || getInput.equals("π") || getInput.equals("√") || getInput.equals("^") || getInput.equals(answers)) {
            calculatorTextField.setText("0.");
        } else {
            calculatorTextField.setText(getInput + ".");
        }
    }                                             

    private void additionButtonActionPerformed(java.awt.event.ActionEvent evt) {                                               
        getInput = calculatorTextField.getText();
        num1 = Double.parseDouble(getInput);
        operator = "+";
        calculatorTextField.setText("+");
    }                                              

    private void subtractionButtonActionPerformed(java.awt.event.ActionEvent evt) {                                                  
        getInput = calculatorTextField.getText();
        num1 = Double.parseDouble(getInput);
        operator = "-";
        calculatorTextField.setText("-");
    }                                                 

    private void divisionButtonActionPerformed(java.awt.event.ActionEvent evt) {                                               
        getInput = calculatorTextField.getText();
        num1 = Double.parseDouble(getInput);
        operator = "/";
        calculatorTextField.setText("/");
    }                                              

    private void multiplicationButtonActionPerformed(java.awt.event.ActionEvent evt) {                                                     
        getInput = calculatorTextField.getText();
        num1 = Double.parseDouble(getInput);
        operator = "*";
        calculatorTextField.setText("*");
    }                                                    

    private void modulusButtonActionPerformed(java.awt.event.ActionEvent evt) {                                              
        getInput = calculatorTextField.getText();
        num1 = Double.parseDouble(getInput);
        operator = "%";
        calculatorTextField.setText("%");
    }                                             

    private void piButtonActionPerformed(java.awt.event.ActionEvent evt) {                                         
        getInput = calculatorTextField.getText();
        calculatorTextField.setText("3.141592653589793238");
    }                                        

    private void squarrootButtonActionPerformed(java.awt.event.ActionEvent evt) {                                                
        getInput = calculatorTextField.getText();
        num1 = Double.parseDouble(getInput);
        answer = Math.sqrt(num1);
        answers = Double.toString(answer);
        calculatorTextField.setText(answers);

    }                                               

    private void exponentButtonActionPerformed(java.awt.event.ActionEvent evt) {                                               
        getInput = calculatorTextField.getText();
        num1 = Double.parseDouble(getInput);
        operator = "^";
        calculatorTextField.setText("^");
    }                                              

    private void equalsButtonActionPerformed(java.awt.event.ActionEvent evt) {                                             
        getInput = calculatorTextField.getText();
        num2 = Double.parseDouble(getInput);
        if (operator.equals("+")) {
            answer = (num1 + num2);
        } else if (operator.equals("-")) {
            answer = (num1 - num2);
        } else if (operator.equals("/")) {
            answer = (num1 / num2);
        } else if (operator.equals("*")) {
            answer = (num1 * num2);
        } else if (operator.equals("%")) {
            answer = (num1 % num2);
        } else if (operator.equals("^")) {
            answer = Math.pow(num1, num2);
        }else {
            answer = (num1 + num2);
        }
        answers = Double.toString(answer);
        calculatorTextField.setText(answers);
    }                                            

    private void cButtonActionPerformed(java.awt.event.ActionEvent evt) {                                        
        num1 = 0.0;
        num2 = 0.0;
        answer = 0.0;
        calculatorTextField.setText("");
    }                                       

    private void ceButtonActionPerformed(java.awt.event.ActionEvent evt) {                                         
        calculatorTextField.setText("");
    }                                        

    private void posornegButtonActionPerformed(java.awt.event.ActionEvent evt) {                                               
        getInput = calculatorTextField.getText();
        if (posorneg == true) {
            getInput = ("-" + getInput);
            calculatorTextField.setText(getInput);
            posorneg = false;
        } else if (posorneg == false) {
            int pos=0;
            getInput = (getInput.substring(0, pos) + getInput.substring(pos+1));
            calculatorTextField.setText(getInput);
            posorneg = true;
        } else {
            getInput = calculatorTextField.getText();
            calculatorTextField.setText(getInput);
        }
    }                                              

    private void backspaceButtonActionPerformed(java.awt.event.ActionEvent evt) {                                                
        getInput = calculatorTextField.getText();
        getInput = getInput.substring(0,getInput.length()-1);
        calculatorTextField.setText(getInput);
    }                                               

    private void roundButtonActionPerformed(java.awt.event.ActionEvent evt) {                                            
        getInput = calculatorTextField.getText();
        answer = Double.parseDouble(getInput);
        answer = Math.round(answer);
        answers = Double.toString(answer);
        calculatorTextField.setText(answers);
    }                                           

    private void roundtoMenuItemActionPerformed(java.awt.event.ActionEvent evt) {                                                
        
    }                                               

    private void texttutorialMenuItemComponentAdded(java.awt.event.ContainerEvent evt) {                                                    
        // TODO add your handling code here:
    }                                                   

    private void amountTextFieldMouseClicked(java.awt.event.MouseEvent evt) {
        amountTextField.setText("");
    }

    /**
    * @param args the command line arguments
    */
    public static void main(String args[]) {
        java.awt.EventQueue.invokeLater(new Runnable() {
            public void run() {
                new UltimateConverter().setVisible(true);
            }
        });
    }

    // Variables declaration - do not modify
    private javax.swing.JLabel Label1;
    private javax.swing.JLabel Label2;
    private javax.swing.JLabel Label3;
    private javax.swing.JMenuBar MenuBar;
    private javax.swing.JTabbedPane TabbedPane;
    private javax.swing.JMenu aboutMenu;
    private javax.swing.JMenuItem aboutTUCMenuItem;
    private javax.swing.JButton additionButton;
    private javax.swing.JTextField amountTextField;
    private javax.swing.JButton backspaceButton;
    private javax.swing.JButton cButton;
    private javax.swing.JMenu calculatorMenu;
    private javax.swing.JPanel calculatorPanel;
    private javax.swing.JTextField calculatorTextField;
    private javax.swing.JButton ceButton;
    private javax.swing.JButton convertButton;
    private javax.swing.JMenu currencyMenu;
    private javax.swing.JPanel currencyPanel;
    private javax.swing.JComboBox currencyfromComboBox;
    private javax.swing.JLabel currencyfromLabel;
    private javax.swing.JLabel currencyfromnumberLabel;
    private javax.swing.JLabel currencyfromtypeLabel;
    private javax.swing.JComboBox currencytoComboBox;
    private javax.swing.JLabel currencytoLabel;
    private javax.swing.JLabel currencytonumberLabel;
    private javax.swing.JLabel currencytotypeLabel;
    private javax.swing.JButton decimalButton;
    private javax.swing.JButton divisionButton;
    private javax.swing.JButton eightButton;
    private javax.swing.JButton equalsButton;
    private javax.swing.JButton exponentButton;
    private javax.swing.JMenu fileMenu;
    private javax.swing.JButton fiveButton;
    private javax.swing.JButton fourButton;
    private javax.swing.JMenu helpMenu;
    private javax.swing.JLabel isequivalenttoLabel;
    private javax.swing.JLabel jLabel1;
    private javax.swing.JScrollBar jScrollBar1;
    private javax.swing.JPopupMenu.Separator jSeparator1;
    private javax.swing.JMenu lengthMenu;
    private javax.swing.JPanel lengthPanel;
    private javax.swing.JButton modulusButton;
    private javax.swing.JButton multiplicationButton;
    private javax.swing.JButton nineButton;
    private javax.swing.JButton oneButton;
    private javax.swing.JButton piButton;
    private javax.swing.JMenuItem pilengthMenuItem;
    private javax.swing.JButton posornegButton;
    private javax.swing.JButton roundButton;
    private javax.swing.JMenuItem roundtoMenuItem;
    private javax.swing.JButton sevenButton;
    private javax.swing.JButton sixButton;
    private javax.swing.JButton squarrootButton;
    private javax.swing.JButton subtractionButton;
    private javax.swing.JMenuItem texttutorialMenuItem;
    private javax.swing.JButton threeButton;
    private javax.swing.JButton twoButton;
    private javax.swing.JMenuItem videotutorialMenuItem;
    private javax.swing.JMenu weightMenu;
    private javax.swing.JPanel weightPanel;
    private javax.swing.JButton zeroButton;
    // End of variables declaration

}

I am making this in the NetBeans WYSIWYG so there is a lot of extra code in there.

-WolfShield

As for the tutorial question above,
I just want a window that I can place text into for the tutorial.

Kind of like a bunch of labels.

-WolfShield

Great software Wolf. :)

Do you mean make a new window? Right click on the package and choose new-JFrame Form. After that put the code I've write above in Menu's actionPerformed.
am I right? Sorry if I wrong again. (My english is so bad. :p)

Yes!
That is exactly what I needed!!! Thank you so much!!

One thing, what do I put instead of the 'Form2'?

Like, what part is that in my program?

Thanks again!!

-WolfShield

Its the name or your new form class. :)

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.