Welcome to the Java Programming Forums


The professional, friendly Java community. 21,500 members and growing!


The Java Programming Forums are a community of Java programmers from all around the World. Our members have a wide range of skills and they all have one thing in common: A passion to learn and code Java. We invite beginner Java programmers right through to Java professionals to post here and share your knowledge. Become a part of the community, help others, expand your knowledge of Java and enjoy talking with like minded people. Registration is quick and best of all free. We look forward to meeting you.


>> REGISTER NOW TO START POSTING


Members have full access to the forums. Advertisements are removed for registered users.

Results 1 to 3 of 3

Thread: ERROR - "CANNOT FIND SYMBOL"

  1. #1
    Junior Member
    Join Date
    Jan 2013
    Posts
    5
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Arrow ERROR - "CANNOT FIND SYMBOL"

    import java.io.*;
    public class DHMain extends javax.swing.JFrame
    {
    /** Creates new form DHMain */

    public DHMain()
    {
    initComponents();
    //jDesktopPane1.add( new DHFrame());
    java.awt.Dimension dim = java.awt.Toolkit.getDefaultToolkit().getScreenSize ();
    setSize(610,455);
    setResizable(false);
    }

    /** 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.
    */

    private void initComponents()
    {
    //GEN-BEGIN:initComponents

    jdp = new javax.swing.JDesktopPane();
    jMenuBar1 = new javax.swing.JMenuBar();
    fileMenu = new javax.swing.JMenu();
    fileMenu1 = new javax.swing.JMenu();
    embedMenu = new javax.swing.JMenuItem();
    extractmenu = new javax.swing.JMenuItem();
    exitmenu = new javax.swing.JMenuItem();
    aboutMenu = new javax.swing.JMenuItem();
    piclabel=new javax.swing.JLabel(new javax.swing.ImageIcon("new2.jpg"));
    piclabel.setBounds(0,0,600,400);
    add(piclabel);
    setTitle("Audio-Stego");
    addWindowListener(new java.awt.event.WindowAdapter()
    {
    public void windowClosing(java.awt.event.WindowEvent evt) {
    exitForm(evt);
    }
    });
    getContentPane().add(jdp, java.awt.BorderLayout.CENTER);

    fileMenu.setMnemonic('F');
    fileMenu.setText("File");
    fileMenu1.setMnemonic('h');
    fileMenu1.setText("Help");
    embedMenu.setMnemonic('m');
    embedMenu.setText("Embed");
    embedMenu.addActionListener(new java.awt.event.ActionListener() {
    public void actionPerformed(java.awt.event.ActionEvent evt) {
    embedMenuActionPerformed(evt);
    }
    });
    fileMenu.add(embedMenu);
    extractmenu.setMnemonic('t');
    extractmenu.setText("Extract");
    extractmenu.addActionListener(new java.awt.event.ActionListener() {
    public void actionPerformed(java.awt.event.ActionEvent evt) {
    extractmenuActionPerformed(evt);
    }
    });

    fileMenu.add(extractmenu);
    exitmenu.setMnemonic('x');
    exitmenu.setText("Exit");
    exitmenu.addActionListener(new java.awt.event.ActionListener() {
    public void actionPerformed(java.awt.event.ActionEvent evt) {
    exitmenuActionPerformed(evt);
    }
    });
    fileMenu1.add(aboutMenu);
    aboutMenu.setMnemonic('a');
    aboutMenu.setText("About");
    aboutMenu.addActionListener(new java.awt.event.ActionListener() {
    public void actionPerformed(java.awt.event.ActionEvent evt) {
    aboutMenuActionPerformed(evt);
    }
    });
    fileMenu.add(exitmenu);
    fileMenu1.add(aboutMenu);
    jMenuBar1.add(fileMenu);
    jMenuBar1.add(fileMenu1);

    setJMenuBar(jMenuBar1);
    pack();
    }


    private void exitmenuActionPerformed(java.awt.event.ActionEvent evt)
    {

    System.exit(0);
    }

    private void extractmenuActionPerformed(java.awt.event.ActionEv ent evt)
    {
    piclabel.setVisible(false);
    WizardFrame wf = new ExtractAction(this).getWizardFrame();
    jdp.add(wf);
    wf.moveToFront();
    }
    private void embedMenuActionPerformed(java.awt.event.ActionEven t evt)
    {

    System.out.println("Embed Action Selected..");

    piclabel.setVisible(false);
    WizardFrame wf = new EmbedAction(this).getWizardFrame();
    jdp.add(wf);
    wf.moveToFront();
    }

    private void aboutMenuActionPerformed(java.awt.event.ActionEven t evt)
    {
    javax.swing.JOptionPane.showMessageDialog(this,"HI DING TEXT IN IMAGE USING

    STEGNOGRAPHY\n\n"+"Created by : IT","About",javax.swing.JOptionPane.PLAIN_MESSAGE) ;
    }
    private void exitForm(java.awt.event.WindowEvent evt) {

    System.exit(0);

    }

    public static void main(String args[])
    {
    new DHMain().show();
    }

    // Variables declaration - do not modify//GEN-BEGIN:variables
    private javax.swing.JMenuItem exitmenu;
    private javax.swing.JMenu fileMenu;
    private javax.swing.JMenu fileMenu1;
    private javax.swing.JDesktopPane jdp;
    private javax.swing.JMenuItem extractmenu;
    private javax.swing.JMenuItem embedMenu;
    private javax.swing.JMenuItem aboutMenu;
    private javax.swing.JMenuBar jMenuBar1;
    public javax.swing.JLabel piclabel;
    // End of variables declaration//GEN-END:variables

    }


  2. #2
    Junior Member
    Join Date
    Jan 2013
    Posts
    20
    Thanks
    0
    Thanked 1 Time in 1 Post

    Default Re: ERROR - "CANNOT FIND SYMBOL"

    Hi, check the declaration of the variables

  3. #3
    Super Moderator Norm's Avatar
    Join Date
    May 2010
    Location
    Eastern Florida
    Posts
    20,973
    Thanks
    51
    Thanked 2,269 Times in 2,241 Posts

    Default Re: ERROR - "CANNOT FIND SYMBOL"

    Please post the full text of the error message.

    Please edit your post and wrap your code with
    [code=java]
    <YOUR CODE HERE>
    [/code]
    to get highlighting and preserve formatting.
    If you don't understand my answer, don't ignore it, ask a question.

Similar Threads

  1. Please! Help me to this error "ERROR CANNOT FIND SYMBOL"
    By mharck in forum Object Oriented Programming
    Replies: 8
    Last Post: July 3rd, 2012, 09:20 AM
  2. "Cannot find symbol" compilation error
    By collegejavastudent in forum What's Wrong With My Code?
    Replies: 7
    Last Post: December 12th, 2011, 04:07 PM
  3. Replies: 3
    Last Post: December 7th, 2011, 01:03 AM
  4. Replies: 7
    Last Post: August 13th, 2011, 01:22 AM
  5. Replies: 1
    Last Post: March 15th, 2010, 10:03 PM