10-04-2017, 09:02 PM
[attachment=14202]
LANGUAGE USED JAVA ( GRAPHICS 2D )
INTERFACE GUI ( GRAPHICS USER
INTERFACE )
OPERATING SYSTEM - WINDOWS
SAVE THE SHELL GAME
This is a java based game .
it is a gui application using graphics 2D.
Gui programming makes use of objects.
Objects comprise of colors, fonts, events, gui components such as buttons , menus etc.
Events are handled by instance methods contained in objects.
JFRAME
Independent window with titlebar,open & close buttons
It is created & its properties are set as follows
Jframe window = new Jframe( Title );
window.setContentPane(content);
window.setSize(width,height);
window.setLocation(x,y);
window.setVisible(true);
JPANEL
Blank rectangle ; used as drawing surface
We can add other components in it,
Draw something over it