Skynes Member Posts: 202 From: Belfast, N Ireland Registered: 01-18-2004 |
I'm doing a file handling project in java displaying a GUI in Java swing. A couple of things I need to know (it's research) are: Change background colour. This is going to be based on a CD Stock Control system if that helps any. Any help available on the above is really appreciated. |
|
GUMP Member Posts: 1335 From: Melbourne, FL USA Registered: 11-09-2002 |
Change background color: setBackground(new Color(r,g,b) ); RGB values range from 0-255. Here's a class I wrote for displaying a loading screen image while the rest of the program is loading (I edited some personal stuff out):
[This message has been edited by Gump (edited March 05, 2004).] |
|
Skynes Member Posts: 202 From: Belfast, N Ireland Registered: 01-18-2004 |
Thanx I'll try and see if I can firstly understand that (uses quite a bit of code I don't know) and secondly if I can use it myself. My team wanted a timer based Splash screen for this. Just for the extra marks of doing something on top of the basics | |
CobraA1 Member Posts: 926 From: MN Registered: 02-19-2001 |
quote: Most of my programs use a combination of GridBag and Border layouts. Some IDEs also offer some sort of absolute positioning layout. I think you can do absolute positioning with the null layout also. ------------------ |
|
GUMP Member Posts: 1335 From: Melbourne, FL USA Registered: 11-09-2002 |
Yeah, most of my windows use absolute positioning. I prefer to control my window properties manually and not use the premade layouts. Just use this function: getContentPane().setLayout(null); Then specify everything else. |
|
Skynes Member Posts: 202 From: Belfast, N Ireland Registered: 01-18-2004 |
by specify you mean something like (0,100,0,100)? |