| | |
netbeans troubles
Please support our Java advertiser: Programming Forums - DaniWeb Sister Site
Thread Solved |
•
•
Join Date: Aug 2009
Posts: 13
Reputation:
Solved Threads: 0
Hello again DW. Tomorrow I have an interview and I'm trying to make a jar of my latest project. Using netbeans, I've created a jar and everything looks fine. I can see all the card IconImages in the Jlabels and it looks fine. But when I repaint the frame, the card images arent repainted. Its like the path is incorrect or something. But when I run the project, the repainting runs fine. Its only in the jar that I'm having this issue. I appreciate any help.
Here is some code:
Here is some code:
Java Syntax (Toggle Plain Text)
//---------This code re sets the ImageIcon of the JLabels. if (comp.equals("pHand1")) { try { pat = getCardImagePath(card); } catch(Exception e) { System.out.println("Error999: "+e); } pHand1.setIcon(new ImageIcon(pat)); } //............This code is part of getCardImagePath method and gets the path based on param. It returns the path string representing the image path. char sut = card.getSuite(); int nub = card.getNumb(); if (sut == 'S') { if (nub == 14) path = "src/poker/resources/spades-a-75.png"; else if (nub == 2) path = "src/poker/resources/spades-2-75.png"; else if (nub == 3) path = "src/poker/resources/spades-3-75.png"; else if (nub == 4) }
![]() |
Similar Threads
- netbeans problem (Java)
- i do really need your help guys... its about mobile application in netbeans (Legacy and Other Languages)
- How to download source code for NetBeans and Eclipse? (Java)
- Integrating NetBeans 4.0 and Microsoft VSS 6.0 (Java)
- netbeans 4.0 HELP! (Java)
- Spyware troubles (Viruses, Spyware and other Nasties)
- Sound Troubles (Windows 95 / 98 / Me)
- problem importing elements package into netbeans 4.0 (Java)
Other Threads in the Java Forum
- Previous Thread: Anonymous class
- Next Thread: Error: Missing Return Statement
Views: 247 | Replies: 2
| Thread Tools | Search this Thread |
Tag cloud for Java
android api apple applet application arguments array arrays automation awt binary bluetooth businessintelligence busy_handler(null) chat class classes client code component constructor database detection draw eclipse error event eventlistener exception file fractal game givemetehcodez graphics gui helpwithhomework html ide image input integer j2me jar java javafx javamicroeditionuseofmotionsensor javaprojects jmf jni jpanel jtree julia link linux list loop map method methods mobile netbeans newbie nls number object oracle os parsing plazmic print problem program programming project recursion remote scanner screen server set sharepoint size smart sms socket sort sortedmaps sql string swing test textfield threads time transfer tree unlimited utility webservices windows





