}
}
tools.java
package snakegame;
import java.awt.*;
import javax.swing.*;
class colorgroup
{
static color color_back = color.white;
static color color_snake = new color( 43, 110, 187 );
static color color_bean = color.blue;
static color color_eatedbean = color.cyan;
static void setcolor_back( color temp )
{
color_back = temp;
}
static void setcolor_snake( color temp )
{
color_snake = temp;
}
static void setcolor_bean( color temp )
{
color_bean = temp;
}
static void setcolor_eatedbean( color temp )
{
color_eatedbean = temp;
}
}
final class menuget
{
public static jmenu getmenu( string temp )
{
jmenu remenu = new jmenu( temp );
remenu.setfont( font.getfont( "fixedsys" ) );
return remenu;
}
}
final class menuitemget
{
public static jmenuitem getmenuitem( string temp )
{
jmenuitem remenuitem = new jmenuitem( temp );
remenuitem.setfont( font.getfont( "fixedsys" ) );
return remenuitem;
}
}