Me sigue diciendo lo siguiente:
"Dialogo1.java": Error #: 300 : method setIconImage(java.awt.Image) not found in class proyecto_biblioteca.Dialogo1 at line 108, column 5
El código completo del Dialog es este:
package proyecto_biblioteca;
import java.awt.*;
import javax.swing.*;
import com.borland.jbcl.layout.*;
import java.sql.*;
import java.awt.event.*;
import java.lang.*;
import java.util.Vector;
import javax.swing.table.DefaultTableModel;
import Graphics.*;
import java.awt.Image;
/**
* <p>Title: </p>
* <p>Description: </p>
* <p>Copyright: Copyright (c) 2003</p>
* <p>Company: </p>
* @author unascribed
* @version 1.0
*/
public class Dialogo1 extends JDialog {
GridLayout gridLayout1 = new GridLayout();
JPanel jPanel2 = new JPanel();
FlowLayout flowLayout2 = new FlowLayout();
JLabel jLabel2 = new JLabel();
JTextField jTextField2 = new JTextField();
JPanel jPanel3 = new JPanel();
FlowLayout flowLayout3 = new FlowLayout();
JLabel jLabel3 = new JLabel();
JTextField jTextField3 = new JTextField();
JPanel jPanel4 = new JPanel();
JLabel jLabel4 = new JLabel();
JTextField jTextField4 = new JTextField();
FlowLayout flowLayout4 = new FlowLayout();
JPanel jPanel5 = new JPanel();
FlowLayout flowLayout5 = new FlowLayout();
JLabel jLabel5 = new JLabel();
JPanel jPanel6 = new JPanel();
JLabel jLabel6 = new JLabel();
JTextField jTextField6 = new JTextField();
JPanel jPanel7 = new JPanel();
FlowLayout flowLayout6 = new FlowLayout();
JLabel jLabel7 = new JLabel();
JTextField jTextField7 = new JTextField();
JPanel jPanel8 = new JPanel();
FlowLayout flowLayout7 = new FlowLayout();
JLabel jLabel8 = new JLabel();
JPanel jPanel9 = new JPanel();
FlowLayout flowLayout8 = new FlowLayout();
JButton Borrar = new JButton();
JButton Guardar = new JButton();
JRadioButton opcAlumno = new JRadioButton();
JRadioButton opcProfesor = new JRadioButton();
ButtonGroup Grupo1 = new ButtonGroup();
JPasswordField jPasswordField1 = new JPasswordField();
JButton jButton1 = new JButton();
//Variables para la conexión a la BBDD
Connection con = null;
Statement stmt = null;
//Variable para las modificaciones
ModificacionesAlumnos MALUM = new ModificacionesAlumnos();
ModificacionesProfesores MPROF = new ModificacionesProfesores();
JPanel jPanel1 = new JPanel();
FlowLayout flowLayout1 = new FlowLayout();
public Dialogo1(Frame frame, String title, boolean modal) {
super(frame, title, modal);
try {
jbInit();
pack();
}
catch(Exception ex) {
ex.printStackTrace();
}
}
public Dialogo1() {
this(null, "Altas de usuarios", false);
}
public Dialogo1(Marco1 m1) {
this(null, "Altas de usuarios", false);
con = m1.con;
}
public Dialogo1(Marco1 m1,ModificacionesAlumnos MA) {
this(null, "Altas de usuarios", false);
con = m1.con;
MALUM = MA;
}
public Dialogo1(Marco1 m1,ModificacionesProfesores MP) {
this(null, "Altas de usuarios", false);
con = m1.con;
MPROF = MP;
}
void jbInit() throws Exception {
this.getContentPane().setBackground(new Color(49, 106, 167));
this.getContentPane().setLayout(gridLayout1);
jPanel2.setLayout(flowLayout2);
gridLayout1.setRows(9);
ImageIcon logo = new ImageIcon ("C:/Documents and Settings/Rosa/Mis documentos/Proyecto/Logotipo UCAV.gif");
setIconImage(logo.getImage());
jPanel2.setBackground(new Color(49, 106, 167));
jLabel2.setFont(new java.awt.Font("Dialog", 1, 12));
jLabel2.setForeground(Color.red);
jLabel2.setMaximumSize(new Dimension(118, 17));
jLabel2.setMinimumSize(new Dimension(118, 17));
jLabel2.setPreferredSize(new Dimension(118, 17));
jLabel2.setText("Nombre del usuario");
jTextField2.setPreferredSize(new Dimension(227, 21));
jPanel3.setLayout(flowLayout3);
jPanel3.setBackground(new Color(49, 106, 167));
jLabel3.setFont(new java.awt.Font("Dialog", 1, 12));
jLabel3.setForeground(Color.red);
jLabel3.setText("Apellidos del usuario");
jTextField3.setPreferredSize(new Dimension(227, 21));
jLabel4.setFont(new java.awt.Font("Dialog", 1, 12));
jLabel4.setForeground(Color.red);
jLabel4.setMaximumSize(new Dimension(118, 17));
jLabel4.setMinimumSize(new Dimension(118, 17));
jLabel4.setPreferredSize(new Dimension(118, 17));
jLabel4.setText("Login");
jTextField4.setPreferredSize(new Dimension(227, 21));
jPanel4.setLayout(flowLayout4);
jPanel4.setBackground(new Color(49, 106, 167));
jPanel5.setLayout(flowLayout5);
jLabel5.setFont(new java.awt.Font("Dialog", 1, 12));
jLabel5.setForeground(Color.red);
jLabel5.setMaximumSize(new Dimension(118, 17));
jLabel5.setMinimumSize(new Dimension(118, 17));
jLabel5.setPreferredSize(new Dimension(118, 17));
jLabel5.setText("Password");
jPanel5.setBackground(new Color(49, 106, 167));
jLabel6.setFont(new java.awt.Font("Dialog", 1, 12));
jLabel6.setForeground(Color.red);
jLabel6.setMaximumSize(new Dimension(118, 17));
jLabel6.setMinimumSize(new Dimension(118, 17));
jLabel6.setPreferredSize(new Dimension(118, 17));
jLabel6.setText("D.N.I");
jTextField6.setPreferredSize(new Dimension(227, 21));
jPanel6.setBackground(new Color(49, 106, 167));
jPanel7.setLayout(flowLayout6);
jPanel7.setBackground(new Color(49, 106, 167));
jLabel7.setFont(new java.awt.Font("Dialog", 1, 12));
jLabel7.setForeground(Color.red);
jLabel7.setMaximumSize(new Dimension(118, 17));
jLabel7.setMinimumSize(new Dimension(118, 17));
jLabel7.setPreferredSize(new Dimension(118, 17));
jLabel7.setText("Correo electrónico");
jTextField7.setPreferredSize(new Dimension(227, 21));
jPanel8.setLayout(flowLayout7);
jLabel8.setFont(new java.awt.Font("Dialog", 1, 12));
jLabel8.setForeground(Color.red);
jLabel8.setMaximumSize(new Dimension(118, 17));
jLabel8.setMinimumSize(new Dimension(118, 17));
jLabel8.setPreferredSize(new Dimension(118, 17));
jLabel8.setText("Nivel");
jPanel8.setBackground(new Color(49, 106, 167));
jPanel9.setLayout(flowLayout8);
Borrar.setFont(new java.awt.Font("Dialog", 1, 12));
Borrar.setMaximumSize(new Dimension(107, 27));
Borrar.setMinimumSize(new Dimension(107, 27));
Borrar.setPreferredSize(new Dimension(107, 27));
Borrar.setText("Borrar");
Borrar.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(ActionEvent e) {
Borrar_actionPerformed(e);
}
});
Guardar.setFont(new java.awt.Font("Dialog", 1, 12));
Guardar.setMaximumSize(new Dimension(107, 27));
Guardar.setMinimumSize(new Dimension(107, 27));
Guardar.setPreferredSize(new Dimension(107, 27));
Guardar.setText("Guardar");
Guardar.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(ActionEvent e) {
Guardar_actionPerformed(e);
}
});
jPanel9.setBackground(new Color(49, 106, 167));
opcAlumno.setBackground(new Color(49, 106, 167));
opcAlumno.setAlignmentX((float) 0.5);
opcAlumno.setMaximumSize(new Dimension(110, 25));
opcAlumno.setMinimumSize(new Dimension(110, 25));
opcAlumno.setPreferredSize(new Dimension(110, 25));
opcAlumno.setSelected(true);
opcAlumno.setText("Alumno");
opcProfesor.setBackground(new Color(49, 106, 167));
opcProfesor.setMaximumSize(new Dimension(110, 25));
opcProfesor.setMinimumSize(new Dimension(110, 25));
opcProfesor.setPreferredSize(new Dimension(110, 25));
opcProfesor.setText("Profesor");
jPasswordField1.setPreferredSize(new Dimension(227, 21));
jButton1.setFont(new java.awt.Font("Dialog", 1, 12));
jButton1.setMaximumSize(new Dimension(107, 27));
jButton1.setMinimumSize(new Dimension(107, 27));
jButton1.setPreferredSize(new Dimension(107, 27));
jButton1.setText("Cancelar");
jButton1.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(ActionEvent e) {
jButton1_actionPerformed(e);
}
});
jPanel1.setLayout(flowLayout1);
jPanel1.setBackground(new Color(49, 106, 167));
this.getContentPane().add(jPanel2, null);
jPanel2.add(jLabel2, null);
jPanel2.add(jTextField2, null);
this.getContentPane().add(jPanel3, null);
jPanel3.add(jLabel3, null);
jPanel3.add(jTextField3, null);
this.getContentPane().add(jPanel4, null);
jPanel4.add(jLabel4, null);
jPanel4.add(jTextField4, null);
this.getContentPane().add(jPanel5, null);
jPanel5.add(jLabel5, null);
jPanel5.add(jPasswordField1, null);
this.getContentPane().add(jPanel6, null);
jPanel6.add(jLabel6, null);
jPanel6.add(jTextField6, null);
this.getContentPane().add(jPanel7, null);
jPanel7.add(jLabel7, null);
jPanel7.add(jTextField7, null);
this.getContentPane().add(jPanel8, null);
jPanel8.add(jLabel8, null);
jPanel8.add(opcAlumno, null);
jPanel8.add(opcProfesor, null);
this.getContentPane().add(jPanel9, null);
this.getContentPane().add(jPanel1, null);
jPanel1.add(Borrar, null);
jPanel1.add(Guardar, null);
jPanel1.add(jButton1, null);
Grupo1.add(opcAlumno);
Grupo1.add(opcProfesor);
}
}
Muchas gracias. |