1
Guys, I can’t seem to call JOptionPane
in no eclipse class, tried in Netbeans, and ran normal. Someone there may know what might be?
Error message:
Multiple markers at this line - Access Restriction: The type Joptionpane is not accessible due to Restriction on required library C: Program Files Java jre1.8.0_73 lib rt.jar - Access Restriction: The method showMessageDialog(Component, Object) from the type Joptionpane is not accessible due to Restriction on required library C: Program Files Java jre1.8.0_73 lib rt.jar
Code:
package br.projeto.model;
import javax.swing.*;
public class Caixa {
Cliente client = new Cliente();
public void showAvaibleBalance(Cliente client){
client.getBalance();
}
public void makeLoot(Cliente client, double value){
if((value > 0)&&(value < client.getBalance())){
client.setBalance(client.getBalance()-value);
}else if (value < 0){
JOptionPane.showMessageDialog(null, "");
}
}
}
Man, solved ! Thank you so much !! I was going crazy kkkk
– Daniel Santos