Enviado em 18/09/2019 - 22:12h
Esse é o código que tá dando problema:abrir.setOnAction(new EventHandler<ActionEvent>(){
@Override
public void handle(ActionEvent event) {
FileChooser fileChooser = new FileChooser();
File file = fileChooser.showOpenDialog(primaryStage);
if(file != null){
String endereco = file.getAbsolutePath();
URL fxml = this.getClass().getClassLoader().getResource("FXMLTelaRegistrar.fxml");
try {
AnchorPane telaRegistro = FXMLLoader.<AnchorPane>load(fxml);
AnchorPane.setTopAnchor(telaRegistro, 0.0);
AnchorPane.setLeftAnchor(telaRegistro, 0.0);
AnchorPane.setRightAnchor(telaRegistro, 0.0);
AnchorPane.setBottomAnchor(telaRegistro, 0.0);
Tabelas tabela = new Tabelas();
FXMLLoader loader = new FXMLLoader(getClass().getResource("FXMLTelaRegistrar.fxml"));
ListView<ObservableList> lista = new ListView<>();
FXMLTelaRegistrarController controller = loader.getController();
controller.setLista(tabela.listarTabelas(endereco));
controller.setCaminho(endereco);
painelDireito.getChildren().setAll(telaRegistro);
} catch (IOException ex) {
Logger.getLogger(FXMLCREASRecepController.class.getName()).log(Level.SEVERE, null, ex);
} catch (SQLException ex) {
Logger.getLogger(FXMLCREASRecepController.class.getName()).log(Level.SEVERE, null, ex);
}
}
}
Aprenda a Gerenciar Permissões de Arquivos no Linux
Como transformar um áudio em vídeo com efeito de forma de onda (wave form)
Como aprovar Pull Requests em seu repositório Github via linha de comando
Mantenha seu Sistema Leve e Rápido com a Limpeza do APT!
Procurando vídeos de YouTube pelo terminal e assistindo via mpv (2025)
Gravação de tela com temporizador
como instalo panfrost-dri e o driver panfrost fork , ou panfrost (16)
problema no debian que poderia ser corrigido por comando? (12)
Usar uma VM dentro do meu notebook como firewall para um dispositivo e... (0)
Eu tive esse erro aqui depois de de baixar o HyprLand Ubuntu na versão... (1)