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 4 of 4

Thread: Pls Help me. i have error "CANNOT FIND SYMBOL"in java.THANKS A LOTzzzz in Advance

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

    Default Pls Help me. i have error "CANNOT FIND SYMBOL"in java.THANKS A LOTzzzz in Advance

    coding:
    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("IMAGE-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.ActionEvent evt) 
      {    
            piclabel.setVisible(false);
            WizardFrame wf = new ExtractAction(this).getWizardFrame();
           jdp.add(wf);
         wf.moveToFront();
        }
        private void embedMenuActionPerformed(java.awt.event.ActionEvent 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.ActionEvent evt) 
      {
      javax.swing.JOptionPane.showMessageDialog(this,"TEXT HIDING 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
     
    }
    ERRORS:
    C:\JavaPrograms>javac DHMain.java
    DHMain.java:99: error: cannot find symbol
    WizardFrame wf = new ExtractAction(this).getWizardFrame();
    ^
    symbol: class WizardFrame
    location: class DHMain
    DHMain.java:99: error: cannot find symbol
    WizardFrame wf = new ExtractAction(this).getWizardFrame();
    ^
    symbol: class ExtractAction
    location: class DHMain
    DHMain.java:109: error: cannot find symbol
    WizardFrame wf = new EmbedAction(this).getWizardFrame();
    ^
    symbol: class WizardFrame
    location: class DHMain
    DHMain.java:109: error: cannot find symbol
    WizardFrame wf = new EmbedAction(this).getWizardFrame();
    ^
    symbol: class EmbedAction
    location: class DHMain
    Note: DHMain.java uses or overrides a deprecated API.
    Note: Recompile with -Xlint:deprecation for details.
    4 errors
    Last edited by Norm; January 19th, 2013 at 08:08 AM. Reason: fixed code tags


  2. #2
    Super Moderator Norm's Avatar
    Join Date
    May 2010
    Location
    Eastern Florida
    Posts
    25,162
    Thanks
    65
    Thanked 2,725 Times in 2,675 Posts

    Default Re: Pls Help me. i have error "CANNOT FIND SYMBOL"in java.THANKS A LOTzzzz in Advance

    cannot find symbol WizardFrame
    Where is WizardFrame defined? The compiler can not find its definition.
    If you don't understand my answer, don't ignore it, ask a question.

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

    Default Re: Pls Help me. i have error "CANNOT FIND SYMBOL"in java.THANKS A LOTzzzz in Advance

    Quote Originally Posted by Norm View Post
    Where is WizardFrame defined? The compiler can not find its definition.
    Where i have to define WizardFrame and How?
    Thanks

  4. #4
    Super Moderator Norm's Avatar
    Join Date
    May 2010
    Location
    Eastern Florida
    Posts
    25,162
    Thanks
    65
    Thanked 2,725 Times in 2,675 Posts

    Default Re: Pls Help me. i have error "CANNOT FIND SYMBOL"in java.THANKS A LOTzzzz in Advance

    What is that class used for? Why is it used in the code? Is it defined in some package that you need to import?
    If you don't understand my answer, don't ignore it, ask a question.

Similar Threads

  1. ERROR - "CANNOT FIND SYMBOL"
    By abinaya.cs in forum What's Wrong With My Code?
    Replies: 2
    Last Post: January 18th, 2013, 07:07 AM
  2. 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
  3. "Cannot find symbol" compilation error
    By collegejavastudent in forum What's Wrong With My Code?
    Replies: 7
    Last Post: December 12th, 2011, 05:07 PM
  4. Replies: 3
    Last Post: December 7th, 2011, 02:03 AM
  5. Replies: 7
    Last Post: August 13th, 2011, 01:22 AM