you need to be a little more specific of what you're trying to do.
i want to name a item and give it a color
that could mean something as simple as this:
class Item
{
String name;
Color color;
public Item(String name, Color color)
{
this.name = name;
this.color = color;
}
}
Item myItem = new Item("monster", new Color(147,54,175));
Phaelax
Practically a Posting Shark
858 posts since Mar 2004
Reputation Points: 92
Solved Threads: 51