Search:

Type: Posts; User: Lylio

Search: Search took 0.07 seconds.

  1. Replies
    1
    Views
    2,850

    Design pattern: actor-role

    Hi everyone, I'm new to design patterns and currently trying to create a simple example of the following actor-role pattern (sometimes known as player-role pattern):

    3349

    I have no problems...
  2. Replies
    3
    Views
    1,114

    Re: Respawn moving objects on 2D array

    Hi, thanks for the reply. It's very similar to Vehicle1 - I was going to try and understand the respawning problem then probably tidy everything with a Vehicle superclass. I'm kind of at the...
  3. Replies
    3
    Views
    1,114

    Respawn moving objects on 2D array

    I have a 2D array grid on which a couple of runnable vehicle objects (an 'x' and an 'o') are randomly placed. The grid repeatedly prints to console, and the x/y coordinates of the vehicle objects...
  4. Replies
    3
    Views
    898

    Re: Java GridLayout - 2 columns

    import javax.swing.*;

    import java.awt.Color;
    import java.awt.GridLayout;
    import java.awt.event.ActionEvent;
    import java.awt.event.ActionListener;

    public class GymGUI extends JFrame...
  5. Replies
    3
    Views
    898

    Java GridLayout - 2 columns

    Hi everyone,

    I'm trying to create a basic GUI for booking classes in a gym. I'm not very familiar with the grid layout and struggling with creating a 2 column grid.

    Here's what I'm trying to...
Results 1 to 5 of 5