File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Swing / AWT / SWT
Images on JLabels
Joined: Sep 16, 2010
Sep 16, 2010 12:22:04
i have to use an
on a JLabel...but the image is non-rectangular.
so on using the image,the boundaries of the label are visible.
is there some way to to get non-rectangular labels??
Joined: May 03, 2008
Sep 16, 2010 13:14:22
1. An Image can't be non-rectangular. Maybe your image has some transparent pixels.
does not by default have a Border and is by default non-opaque, so if the
boundaries of the label are visible
that must be because of something in your own code.
To get better help sooner, post a
. Preferably link to a suitable image resource on the internet (for example
) so that members can run your SSCCE to see where the problem might be.
There are no new questions, but there may be new answers.
Joined: Oct 13, 2005
Sep 16, 2010 14:51:45
. . . and welcome to the Ranch
I agree. Here's the link:
subject: Images on JLabels
Why this code does not generate any exception?
help needed to reshape an image
how to create non rectangular window
adding picture as background to a frame
AWT Window with background
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2015