We have two applications published on Citrix, and one launches the other. We have lots of licenses for the first application, but not very many for the second application. We want to close the second application if it hasn't been used for a period of time to free up licenses.
I am looking for...
you can implement a KeyListener:
class blah implements KeyListener
add it to your textbox
textBox.addKeyListener(this);
and these methods to your (or another) class
public void keyTyped(KeyEvent event) {
}
public void keyPressed(KeyEvent event) {
if (event.getKeyCode() ==...
Have you looked at the java jar tutorial:
http://java.sun.com/docs/books/tutorial/jar/basics/index.html
Especially in the section called manifest files.
You can't use an executable jar file? Then you just install the JRE on the client machine, fix the classpath, click on the jar file, and it runs just like an exe. (Plus you get the platform independance mentioned earlier)
It's a little weird working with the manifest file, but should be ok...
Can you assign a row/column to each position (so the upper left would be 1,1 and the lower right be 3,3), then you could use something like
validMove = (Math.abs(thisRow - nextRow) + Math.abs(thisCol - next Col) = 1)
This is assuming that you can't click on a cell that moves you off the board.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.