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);
}
}
}
Como gerar um podcast a partir de um livro em PDF
Automatizando digitação de códigos 2FA no browser
Resolver problemas de Internet
Como compartilhar a tela do Ubuntu com uma Smart TV (LG, Samsung, etc.)
Como Instalar o Microsoft Teams no Linux Ubuntu
Músicas de Andrew Hulshult no DOOM (WAD)
Instalar o Apache, MySQL e PHP no Oracle Linux 8
Bloqueando telemetria no Deepin 23.1
Como converter imagens PNG/JPEG para SVG em linha de comando