Posts
 
Reputation
Joined
Last Seen
0 Reputation Points
Unknown Quality Score

No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.

~31.0K People Reached
Favorite Forums
Favorite Tags
java x 8
Member Avatar for techlifelk

I get the following exception Exception in thread "AWT-EventQueue-0" java.lang.NullPointerException: Cannot invoke "java.net.URL.toExternalForm()" because "location" is null My code is java.net.URL auth = getClass().getResource("auth.jpg"); Icon auth1 = new ImageIcon(auth); java.net.URL alert = getClass().getResource("alert.jpg"); Icon alert1 = new ImageIcon(alert); java.net.URL insuf = getClass().getResource("insuf.jpg"); Icon insuf1 = new ImageIcon(insuf); java.net.URL inva = …

Member Avatar for Dani
0
31K
Member Avatar for techlifelk

``` if (credits >= 30) { pnlSuccess.setVisible(true); pnlpass.setVisible(false); busdocRef.update("onbus", FieldValue.arrayUnion(txtRFID.getText())); busdocRef.update("passengers", FieldValue.increment(1)); docRef.update("travelling", Data.busid); docRef.update("slat", slat); docRef.update("slon", slon); txtRFID.setText(""); Thread.sleep(2000); pnlSuccess.setVisible(false); pnlpass.setVisible(true); txtRFID.requestFocus(); } ``` This si the code But the pass pnl do not hide and the success panel do not show up

Member Avatar for JamesCherrill
0
80