| | |
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: 248 | Replies: 2
| Thread Tools | Search this Thread |
Tag cloud for Java
-xlint android animated api apple applet application arguments array arrays automation binary blackberry block bluetooth chat class classes client code component database detection developmenthelp draw eclipse encode error event exception file fractal game givemetehcodez graphics gui helpwithhomework html ide image input integer iphone j2me j2seprojects java javac javaprojects jmf jni jpanel julia lego linux list loop loops mac map method methods mobile netbeans newbie number object online oracle os page print problem program programming project recursion scanner screen server set singleton size sms socket sort sql string swing template test textfields threads time title transfer tree tutorial-sample update windows working





