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...
User Profile
Collapse
-
glassPane update problem
-
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... -
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...Leave a comment:
No activity results to display
Show More
Leave a comment: