Java-Gaming.org    
Featured games (81)
games approved by the League of Dukes
Games in Showcase (495)
Games in Android Showcase (114)
games submitted by our members
Games in WIP (563)
games currently in development
News: Read the Java Gaming Resources, or peek at the official Java tutorials
 
   Home   Help   Search   Login   Register   
  Show Posts
Pages: [1]
1  Discussions / Miscellaneous Topics / Re: J2EE Tips and Tricks (was questions) on: 2010-03-19 15:18:33
We have a manager here who thinks that when you just throw an index on every column of a table, stuff speeds up. But unfortunatly, the more indices you have, more work needs to be done when you insert, update and delete records, slowing that process down.
2  Discussions / Miscellaneous Topics / Re: J2EE questions on: 2010-03-18 09:39:14
I stumbled across Arquillian the other day to do in-container tests for JBoss: http://community.jboss.org/docs/DOC-14376
I haven't had the opportunity yet to give it a full test drive but it looks pretty promising.

Spring also has excellent facilities for unit and integration testing: http://static.springsource.org/spring/docs/2.5.6/reference/testing.html, which i use a lot myself.

The thing that impacts performance for our application the most is by far the database: some poorly written queries, joined views, slapping indexes on just about everything, bad caching, etc. really slows stuff down.
3  Games Center / WIP games, tools & toy projects / Re: CEPHEI - HOSTILE PLANET on: 2010-03-03 08:58:33
Nicely done.

Maybe not the most original concept, but the graphics are very nice and the gameplay is smooth Smiley
I'm not entirely sure what the pick ups do (labeled with squares, stars, 1 and 2) but i guess it's just for points. Maybe you can make some distinctive graphics for that?

Thumbs up!
4  Game Development / Newbie & Debugging Questions / Re: actionlistener problem on: 2009-10-22 07:29:35
You can tell your class to be an actionlistener:

1  
2  
3  
4  
5  
6  
7  
8  
9  
10  
11  
12  
13  
14  
15  
16  
17  
18  
19  
20  
21  
22  
23  
24  
25  
26  
27  
28  
29  
30  
31  
32  
33  
34  
35  
36  
37  
38  
39  
40  
41  
42  
43  
44  
45  
46  
47  
48  
49  
50  
51  
52  
53  
54  
55  
56  
57  
58  
59  
60  
61  
62  
63  
import java.awt.*;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.awt.event.MouseListener;
import javax.swing.*;

public class Fenetre  extends JFrame implements ActionListener {
   JButton jbPlay;
   JButton jbClose;
   JLabel label;
   
    //***********french notes.. :D*************

   public Fenetre (String titre) {                 //création de la méthode constructeur
     setTitle (titre);
      Container contenu = getContentPane();

      JButton jbPlay = new JButton("", new ImageIcon("jouer.gif"));
      JButton jbClose = new JButton("", new ImageIcon("exit.gif"));

      jbPlay.setFocusPainted(false);
      jbPlay.setBorderPainted(false);                  // ces trois lignes enelvent la bordure du boutton
     jbPlay.setContentAreaFilled(false);

      jbClose.setFocusPainted(false);
      jbClose.setBorderPainted(false);               // ces trois lignes sont les meme que la haut :)
     jbClose.setContentAreaFilled(false);

      contenu.setLayout(null);
      JLabel label = new JLabel();
      Image image = Toolkit.getDefaultToolkit().createImage("background.gif");// nouveau JLabel backgound
     label.setIcon(new ImageIcon(image));

      contenu.add(jbPlay, 0);
      contenu.add(jbClose, 1);
      contenu.add(label, 2);
      label.setBounds(0, 0, 900, 800);
      jbPlay.setBounds(50, 445, 850, 78);
      jbClose.setBounds(50, 640, 158, 50);
      jbPlay.addActionListener(this);      // errors here
       jbClose.addActionListener(this);           // and here
 
      setSize(907,832);
      setResizable(false);
      setDefaultCloseOperation(JFrame.DISPOSE_ON_CLOSE);
      setVisible(true);
   }

   public void actionPerformed(ActionEvent e) {
      Object t = e.getSource();

        if (t == jbPlay) {
            game();
        } else if (t == jbClose) {
         System.out.print("failure");  
        }
   }
   

   private void game() {
      System.out.print("test reussi");
   }
}


5  Discussions / General Discussions / Re: Another language feature I'd like on: 2009-07-01 12:00:42
It's not a language feature but you could take a look at the CollectionUtils from the Apache Commons project. SetUtils.predicatedSet looks like a nice candidate, for example. Or ofcourse you could write something yourself Smiley
6  Game Development / Newbie & Debugging Questions / Re: [HELP] Library help on: 2009-02-12 08:44:07
I suppose you could go for a try / catch ClassNotFoundException in the main method solution. Then exit the program in the catch block with a nice message.

However, if you are distributing your game in for example a JAR file, or online in a webstart, you (the programmer / distributor) should be responsible of supplying all required libraries, since the user can't download the libraries himself and "rebuild" the jar file.

Pages: [1]
 

Add your game by posting it in the WIP section,
or publish it in Showcase.

The first screenshot will be displayed as a thumbnail.

BurntPizza (11 views)
2014-09-19 03:14:18

Dwinin (29 views)
2014-09-12 09:08:26

Norakomi (57 views)
2014-09-10 13:57:51

TehJavaDev (79 views)
2014-09-10 06:39:09

Tekkerue (40 views)
2014-09-09 02:24:56

mitcheeb (60 views)
2014-09-08 06:06:29

BurntPizza (45 views)
2014-09-07 01:13:42

Longarmx (30 views)
2014-09-07 01:12:14

Longarmx (36 views)
2014-09-07 01:11:22

Longarmx (36 views)
2014-09-07 01:10:19
List of Learning Resources
by Longor1996
2014-08-16 10:40:00

List of Learning Resources
by SilverTiger
2014-08-05 19:33:27

Resources for WIP games
by CogWheelz
2014-08-01 16:20:17

Resources for WIP games
by CogWheelz
2014-08-01 16:19:50

List of Learning Resources
by SilverTiger
2014-07-31 16:29:50

List of Learning Resources
by SilverTiger
2014-07-31 16:26:06

List of Learning Resources
by SilverTiger
2014-07-31 11:54:12

HotSpot Options
by dleskov
2014-07-08 01:59:08
java-gaming.org is not responsible for the content posted by its members, including references to external websites, and other references that may or may not have a relation with our primarily gaming and game production oriented community. inquiries and complaints can be sent via email to the info‑account of the company managing the website of java‑gaming.org
Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines | Managed by Enhanced Four Valid XHTML 1.0! Valid CSS!