is there a way to say, I dunno, make just the pic come up if I attach it to the jLabel and have no text? If I try to remove text in design view the jLabel disappears and if I create my own label like this:
It says something about cannot find symbol. My textbook on the other hand believes that line of code should be possible. ;)
......remove text in design view..........something about cannot find symbol......
Looks like you are using a designer kind of IDE. Bad idea. I would recommend you hand code. Search the Swing forums. You will find past discussions on this.
If you want to display just the Icon, you can use the JLabel(Icon image) constructor.
Without seeing your code, difficult to tell why the cannot find symbol. The full stack trace will actually tell you the class, line number and even character where the problem was encountered.
This post would be more suitable on the Swing forum.
Joined: Oct 12, 2010
Here's what compiles, but now it's again not displayed. If I attach the image to a label in the designer with text it works, but then it must have text.