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);
}
}
}
Desktop Linux ganha fôlego enquanto distros refinam experiência e segurança
Wayland em alta, IA em debate e novos ventos para distros e devices
Qt 6.10 e Python 3.14 puxam o ritmo do software livre nesta quarta
Atualizações de Apps, Desktop e Kernel agitam o ecossistema Linux nesta terça-feira
Como mudar o nome de dispositivos Bluetooth via linha de comando
Adicionando o repositório backports no Debian 13 Trixie
Não tenho som no meu Kali linux (0)
Erro ao fazer remaster usando Penguin eggs (2)
Primeiras impressões do Debian 13 (25)
Meu Amigo não consegue entrar em meu mundo, via tailscale, hamachi e z... (1)