User Profile

Collapse

Profile Sidebar

Collapse
Neverhood
Neverhood
Last Activity: Dec 16 '07, 07:07 AM
Joined: Nov 7 '07
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • Neverhood
    started a topic glassPane update problem
    in Java

    glassPane update problem

    Hi folks,
    I'm trying to make a small game about being a drug dealer, with a 10x8 grid JPanel. On top of that i have another 10x8 grid JPanel as glassPane for the player icon.

    I have all the properties of the player in a player object class with getter and setter methods for fx his X and Y position in the grid.
    When i set up his X and Y position myself everything works fine and he is painted the right place.
    My...
    See more | Go to post

  • Neverhood
    replied to Executing windows system calls through java
    in Java
    To make a system call on the local machine use this code:

    Process process = Runtime.getRunt ime().exec("SYS TEM_COMMAND");

    where SYSTEM_COMMAND is anything you would write in the command prompt. For example: ping google.com

    Writing system calls to another windows computer via the computer you are running your java script on is more a Windows question, unless you want to set up a java server on...
    See more | Go to post

    Leave a comment:


  • Neverhood
    replied to Card Drawing Simulation
    in Java
    The point is to simulate a drawing of cards... Make a method that gives you a random card (maybe think of the random cards as random numbers from 1 to 13). Then make a loop so you get 3 random numbers. Then make some logic that can determine if the numbers are 3 consecutive numbers. For example (1 2 3) but take care that (1 3 2) would also count as consecutive.

    This should get you on your way, but really... if you get an assignment...
    See more | Go to post

    Leave a comment:

No activity results to display
Show More
Working...