You mean in the olden time when we use to play game in dos mode or window mode.
Well java (not javascript) will probaly let you do it but is best to use Visual Basic C++ to build them and the file probably will be .exe
The easy way to make a good graphical game is Flash using Action Script
Yes, the "Olden Time" games.
the only problem is I don't know Java, or C++.