I need your help!
I am switching to netbeans and have been having some major problems.
After about 6 hours I finally figured out how to get the image to show in netbeans.
Is there a way to write the code where it will work in JGrasp and netbeans?
The working code for netbeans is
menuPic = new javax.swing.JButton(); menuPic.setIcon(new javax.swing.ImageIcon(getClass().getResource("image/w2.png")));
and the working code for JGrasp is
menuPic = new JButton(); ImageIcon bottompic = new ImageIcon("image/w2.png"); JButton menuPic = new JButton(bottompic);
I hate JGrasp but thats what my teacher uses to grade, so I want to be able to write it in netbeans and copy and paste the code to JGrasp and it be able to work.
Any help would be greatly appreciated!!