HI - Well, I'm into my second week of programming with java and I'm starting to like it :-) I have figured out how to override the paintComponent of a panel by extending JPanel and displaying a gif on screen. But I'd like to have a graduated background on my main panel, or maybe even display a graphic that is a graduated image. So my question is - how do you change the background of a frame or panel to a graduated dark bluie on the left side and light purplish bluie on the right side? Thanks in advance.
Craig, I see from your reply you know quite a bit more about this than I do. SO.. I ran your Shades program. The frame displayed without the coloured effect. On closing the frame the frame closed down but left the coloured area overlaying my screen. By minimising and them retsoring my screen it cleared it away.
I suspect I have an environmental problem. Any suggestions as to what I should look at.
Thanks, and keep the replies coming, for us new to java they are most helpful.
Gary Down.
a bit more info..... just added JFrame.setDefaultLookAndFeelDecorated(true); immediately before the line of code "JFrame f = new JFrame();" It now works buts sometimes leaves the "close frame" "x" on screen. [ May 15, 2004: Message edited by: Gary Down ]
Enjoy the full beauty of the english language. Embedded in this tiny ad:
New web page for Paul's Rocket Mass Heaters movies