problem

How can i use an image with outTextGrafic.setBackground(Color.BLUE); instead of Colour.BLUE ? is there any way i can do this ? with no funny code ?HELP
[172 byte] By [staudesasea] at [2007-11-26 17:59:54]
# 1

> with no funny code ?

Sorry, you need funny code because its not supported directly in the API.

There are solution where you draw the image yourself, or where you use a Border as the image.

Search the forum using "background image" and you should find some of these solutions.

camickra at 2007-7-9 5:29:10 > top of Java-index,Desktop,Core GUI APIs...
# 2

You might consider using a JLabel to display the image

ImageIcon icon = new ImageIcon("images/myImage.gif")

JLabel label = new JLabel("con )

JPanel panel = new JPanel();

panel.add(label);

watfora at 2007-7-9 5:29:10 > top of Java-index,Desktop,Core GUI APIs...