Pessoal criei um projeto q tenho o seguinte metodo:
public class VerificarTela {
private List<TbPermissaoUsuario> permissaoUsuario;
public VerificarTela(JFrame frame, int codigoUsuario) {
this.permissaoUsuario = new PermissaoUsuarioFACADE().getPermissaoUsuario(codigoUsuario, frame.getClass().toString().substring(6));
}
public VerificarTela(JDialog frame, int codigoUsuario) throws Exception {
this.permissaoUsuario = new PermissaoUsuarioFACADE().getPermissaoUsuario(codigoUsuario, frame.getClass().toString().substring(6));
percorreComponentesPrincipais(frame);
}
adicionei esse projeto em outro projeto e nesse outro projeto estou chamando a o metodo assim:
public class GerenciarEstadoJDL extends javax.swing.JDialog {
public GerenciarEstadoJDL(java.awt.Frame parent, boolean modal) {
super(parent, modal);
initComponents();
try {
BufferedImage img = null;
img = ImageIO.read(getClass().getResourceAsStream("/br/com/dnasolution/imagens/fundo_menu_barra.png"));
navegadorBean.setImage(img);
navegadorBean.setStyle(Style.TILED);
jpaComplementoNavegador.setImage(img);
jpaComplementoNavegador.setStyle(Style.TILED);
} catch (Exception e) {
e.printStackTrace();
}
estadoFacade = new EstadoFACADE();
tbEstadoList = estadoFacade.getEstado();
navegadorBean.carregaNavegador(tbEstadoBean, tbEstadoList);
try {
new VerificarTela(this, 1);
} catch (Exception ex) {
ex.printStackTrace();
}
}
pq eu recebo o seguinte erro:
piling 183 source files to D:\java\ProjetosSvn\Notas\fontes\Notas\build\classes D:\java\ProjetosSvn\Notas\fontes\Notas\src\br\com\dnasolution\gui\GerenciarEstadoJDL.java:54: cannot find symbol symbol : constructor VerificarTela(br.com.dnasolution.gui.GerenciarEstadoJDL,int) location: class br.com.dnasolution.controleusuario.util.VerificarTela new VerificarTela(this, 1); Note: Some input files use or override a deprecated API. Note: Recompile with -Xlint:deprecation for details. Note: Some input files use unchecked or unsafe operations. Note: Recompile with -Xlint:unchecked for details. 1 error BUILD FAILED (total time: 14 seconds)
eu estou tentando passar um objeto q extends um JDialog, logo ele teria q aceitar nao teria??
valeu