![]() |
|
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
Newbie
Join Date: Oct 2005
Posts: 6
Rep Power: 0
![]() |
Is there any way to do this as i cant find anything on the web? Just using a gif file as the background. Thanks.
|
|
|
|
|
|
#2 |
|
Programming Guru
![]() |
I don't know Java, but i'm sure there are ways to set certain parts of the background different colors... you could read the GIF file yourself (or convert to BMP a much easier, but larger format) and draw it to the background...
__________________
|
|
|
|
|
|
#3 |
|
Professional Programmer
|
http://forum.java.sun.com/thread.jsp...hreadID=506054
Search through there ... u'll probably find an answere.
__________________
Don't take life too seriously, it's not permanent ! |
|
|
|
|
|
#4 | |
|
Newbie
Join Date: Oct 2005
Posts: 6
Rep Power: 0
![]() |
Quote:
java doesnt seem to like bitmaps, i dont want to set certain parts to certain colours, i just want one gif as a background, sounds simple but java being java- it isnt! |
|
|
|
|
|
|
#5 |
|
Newbie
Join Date: Oct 2005
Posts: 19
Rep Power: 0
![]() |
How about using another JPanel with the gif and put it to the JFrame with BorderLayout?
Hope this meets your requirements. Regards; Stephen |
|
|
|
|
|
#6 |
|
Newbie
Join Date: Oct 2005
Posts: 6
Rep Power: 0
![]() |
yes but then would you be able to say, create a border layout say of other images or jbuttons and effectively drawing them over that Jpanel and thus creating a background effect?
|
|
|
|
|
|
#7 |
|
Newbie
Join Date: Oct 2005
Posts: 19
Rep Power: 0
![]() |
How about using GlassLayout????. Many splash are done like that. I'm not sure what will happen when you put too many components.
![]() Regards; Stephen |
|
|
|
|
|
#8 |
|
The Supreme Ruler
![]() Join Date: May 2004
Location: Houston
Posts: 1,476
Rep Power: 6
![]() |
Could you not just paint it as an image?
__________________
"Every gun that is made, every warship launched, every rocket signifies, in the final sense, a theft from those who hunger and are not fed, from those who are cold and are not clothed. The world in arms is not spending money alone. It is spending the sweat of its laborers, the genius of its scientists, the hopes of its children." - Dwight D. Eisenhower |
|
|
|
![]() |
| Bookmarks |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|