User Name
Password

Go Back   Planetarion Forums > Non Planetarion Discussions > Programming and Discussion

Reply
Thread Tools Display Modes
Unread 16 Nov 2002, 10:55   #1
Outcast2k
Debonair
 
Join Date: May 2001
Location: India
Posts: 33
Outcast2k is an unknown quantity at this point
Java help

Does anyone know any stand alone Tetris games written in java out there? I know quite a lot of them written in applets but I need a stand alone.

Also how do I convert an applet into a stand alone?

Thx.
__________________
The views expressed above are solely of the individual and in no form represent the views of Fury command.

[02:29:37] <@Grendels> most of the people in my school don't know what unix is
[02:29:47] <Add> in all fairness why should they
[02:30:11] <Add> would probably get laid more often
R3 : Can't remember
R4 : 169:4
R5 : 29:16
R6 : 21:12
R7 : 14:23

Come and learn how to do naughty things in #cootie
Outcast2k is offline   Reply With Quote
Unread 16 Nov 2002, 16:25   #2
MT
/dev/zero
Retired Mod
 
MT's Avatar
 
Join Date: May 2000
Posts: 415
MT is an unknown quantity at this point
Code:
  public static void main(String[] args) {
    Applet1 applet = new Applet1();
    JFrame frame = new JFrame();
    frame.setDefaultCloseOperation(3);
    frame.setTitle("Applet Frame");
    frame.getContentPane().add(applet, BorderLayout.CENTER);
    applet.init();
    applet.start();
    frame.setSize(400,320);
    Dimension d = Toolkit.getDefaultToolkit().getScreenSize();
    frame.setLocation((d.width - frame.getSize().width) / 2, (d.height - frame.getSize().height) / 2);
    frame.setVisible(true);
  }
__________________
#linux : Home of Genius

<idimmu> ok i was chained to a desk with this oriental dude
MT is offline   Reply With Quote
Reply


Thread Tools
Display Modes

Forum Jump


All times are GMT +1. The time now is 15:08.


Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2002 - 2018