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);
}
}
}
Visualizar câmeras IP ONVIF no Linux sem necessidade de instalar aplicativos
Atualizar Debian Online de uma Versão para outra
Máquina perereca - até onde é possível o uso de Linux?
Como anda a saúde do disco rígido?
Reescalando a tela hd para fullhd com o xrandr
Debian 13 "trixie&... lançado! (19)
Problema na instalação do Xubuntu (1)