Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / First Aid / May 2004

Tip: Looking for answers? Try searching our database.

Errors compiling ImageViewer. (beans) with IDE3.6

Thread view: 
Qu?bec - 13 May 2004 19:53 GMT
Hi,
Maybe ther is another newsgroup for this....

                   One error is to much... :-)

Jean
==============
ImageViewer.java [59:1] cannot resolve symbol
symbol  : variable ImageViewerBean1
location: class ImageViewer
      ImageViewerBean1.setFileName(fileNameBean1.getFileName());
      ^
1 error
Errors compiling ImageViewer.

=========================
public class ImageViewer extends javax.swing.JFrame {
   public ImageViewer() {
       initComponents();
   }

   private void initComponents() {
       imageViewerBean1 = new ImageViewerBean();
       fileNameBean1 = new FileNameBean();
       jTextField1 = new javax.swing.JTextField();

       addWindowListener(new java.awt.event.WindowAdapter() {
           public void windowClosing(java.awt.event.WindowEvent evt) {
               exitForm(evt);
           }
       });

       imageViewerBean1.setBackground(new java.awt.Color(255, 225, 187));

imageViewerBean1.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);
       imageViewerBean1.setText("Bonjour");
       imageViewerBean1.setToolTipText("chez vous");
       imageViewerBean1.setFileName("C:\\Documents and Settings\\Jean
Pierre\\.netbeans\\3.6\\examples_me\\clouds.gif");
       getContentPane().add(imageViewerBean1,
java.awt.BorderLayout.CENTER);

       fileNameBean1.addPropertyChangeListener(new
java.beans.PropertyChangeListener() {
           public void propertyChange(java.beans.PropertyChangeEvent evt) {
               loadImage(evt);
           }
       });

       getContentPane().add(fileNameBean1, java.awt.BorderLayout.SOUTH);

       jTextField1.setBackground(new java.awt.Color(255, 100, 255));
       jTextField1.setHorizontalAlignment(javax.swing.JTextField.CENTER);
       jTextField1.setText("allo");
       jTextField1.setToolTipText("foo");
       getContentPane().add(jTextField1, java.awt.BorderLayout.NORTH);

       pack();
   }

   private void loadImage(java.beans.PropertyChangeEvent evt) {
      ImageViewerBean1.setFileName(fileName1.getFileName());
   }

   private void exitForm(java.awt.event.WindowEvent evt) {
       System.exit(0);
   }

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

   private FileNameBean fileNameBean1;
   private ImageViewerBean imageViewerBean1;
   private javax.swing.JTextField jTextField1;

}
Chris Smith - 14 May 2004 17:21 GMT
Québec wrote:
> Maybe ther is another newsgroup for this....

Nope, this one is fine.

> =============> ImageViewer.java [59:1] cannot resolve symbol
> symbol  : variable ImageViewerBean1
[quoted text clipped - 4 lines]
> Errors compiling ImageViewer.
> =======================You've misspelled the variable name.  The right name from your code is
imageViewerBean1.

Signature

www.designacourse.com
The Easiest Way to Train Anyone... Anywhere.

Chris Smith - Lead Software Developer/Technical Trainer
MindIQ Corporation

Qu?bec - 14 May 2004 22:53 GMT
Yep, by the great gurus!, sometimes your are tired and just dum.

                                                   Thanks from the big
Jean's ego
Qu?bec wrote:
> Maybe ther is another newsgroup for this....

Nope, this one is fine.

> ==============
> ImageViewer.java [59:1] cannot resolve symbol
[quoted text clipped - 5 lines]
> Errors compiling ImageViewer.
> =========================

You've misspelled the variable name.  The right name from your code is
imageViewerBean1.

Signature

www.designacourse.com
The Easiest Way to Train Anyone... Anywhere.

Chris Smith - Lead Software Developer/Technical Trainer
MindIQ Corporation



Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.