Results 1 to 6 of 6
Thread: Netbeans Image Help
- 03-04-2009, 05:14 AM #1
Member
- Join Date
- Oct 2008
- Posts
- 58
- Rep Power
- 0
- 03-04-2009, 05:23 AM #2
- Join Date
- Jul 2007
- Location
- Colombo, Sri Lanka
- Posts
- 11,374
- Blog Entries
- 1
- Rep Power
- 18
How did you added an image to the label. And also how did you added label to the frame, didn't you use any container like JPanel?
- 03-04-2009, 06:28 AM #3
Member
- Join Date
- Oct 2008
- Posts
- 58
- Rep Power
- 0
The image is an icon in JLabel. The JLabel is stored in a JFrame. Is anything wrong?
also, is there any way I can autoadjust an image (in JLabel) to full screen?
- 03-04-2009, 06:35 AM #4
- Join Date
- Jul 2007
- Location
- Colombo, Sri Lanka
- Posts
- 11,374
- Blog Entries
- 1
- Rep Power
- 18
Add the all component in the panel and that panel should be added to the frame. You can set the size (width and height) same as the frame.
-
- 03-06-2009, 05:28 AM #6
- Join Date
- Jul 2007
- Location
- Colombo, Sri Lanka
- Posts
- 11,374
- Blog Entries
- 1
- Rep Power
- 18
That's a good point Fubarable. I miss it.
I don't think that Vista can effect on Swing API anyhow. What I believe is that our thread starter mess up with the components.
Similar Threads
-
[SOLVED] manipulating the pixel values of an image and constructinf a new image from
By sruthi_2009 in forum AWT / SwingReplies: 14Last Post: 04-10-2009, 08:46 AM -
NetBeans IDE 6.5 - The only IDE you need
By Eranga in forum Reviews / AdvertisingReplies: 2Last Post: 11-26-2008, 09:37 AM -
Canvas Image popups another image (SWT)
By SpaceY in forum New To JavaReplies: 2Last Post: 11-11-2008, 01:25 PM -
drawing an image to an offscreen image
By hunterbdb in forum Java 2DReplies: 9Last Post: 10-30-2008, 06:17 PM -
Converting multiple banded image into single banded image... Image enhancement
By archanajathan in forum Advanced JavaReplies: 0Last Post: 01-08-2008, 05:29 PM


LinkBack URL
About LinkBacks
Reply With Quote

Bookmarks