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